Monday, May 16, 2011

How To Make The Sprite Move With Arrow Keys

This is another Tutorial on How to Make your Sprite Move With Arrow Keys.
It's actually very simple. Always remember to put When Flag Is Clicked in order for the script to work.

  1. Open Up Scratch and then go to "Sensing"
  2. At the middle there will be "Key Space pressed"
  3. Attach the Forever If under the When Flag is Clicked
  4. Then drag The Key Space Pressed to the Space that is left for you to drag in it.
  5. Then Press The Down Arrow next to the word Space to view more option keys.
  6. We will use the Up arrow key for an example. Click on it.
  7. Then inside the Forever if, you will want to have the move 10 steps so it could move.
  8. Go to Motion - Point in Direction Up 0 degrees. So that when you press the up arrow key, your sprite will move and point upwards.
  9. Do the Same step for the down, left and right key arrows and remember to put point in direction 90, -90, 0 or 180 depending on your sprite's arrow key.

Watch a video and the image for help

 Scratch Tutorials By Me. The graphics aren't good because i made this video file for blogs and the graphics aren't so good.
Scratch Arrow Key movement Tutorial. Click Here! 
 You can watch on youtube in HD  Just to inform that on the left hand corner there is a Rhyme Me app. Type a word then click search. Scroll down the app and you will find words that rhyme.
    This is how it should look like

    Look carefully at the scripts

    You can find the "Key Space Pressed?" Here.

    4 comments:

    1. Mine is not working Sir, what do I do to make it work. I am confused.

      ReplyDelete
    2. Liar. Look at the picture or tell me what you did

      ReplyDelete
    3. For your first posting of a film, not too bad. The mouse movements are easy and the timing is perfect. I suggest adding some words so that more people will view it. Honestly, I am impressed! Well done!

      ReplyDelete
    4. I will have to do the video again then....

      Can i download something at school and put it on my USB then bring back home?

      ReplyDelete