Getting started with

Teachnet logo
A Teachnet Project by Trevor Blunn working at the Cedars Upper School Leighton Buzzard Bedfordshire

Simple Movement

One of the easiest programs to make is one that moves a figure on the screen.

In Scratch the figure is called a Sprite.

  1. Click on the Control button shown on the left
  2. A series of commands will appear below the topics box.
  3. Select the first one (when flag is clicked), and drag it to the Scripts area of the screen.
  4. Next click the Motion button (to the left of the Control button).
Control dialogue
  1. Drag the move 10 steps button across and lock it underneath the earlier command. Your program should look like the one on the right.
  2. Click the green flag near the top right of the Scratch screen to run your program.
First Program

Amending the program

You can change the amount of movement by altering the figure in the movement command. Double click on the figure and type in a new one of your choice.

Changing Direction

In this program we will make the sprite change direction. We will build on the current program created above.

  1. Change the movement amount in your previous program from 10 to something like 30 or 40.
  2. Click the control option again and select the wait 1 secs command
  3. Click the motion button and add the point in direction 90 command below it.
  4. Click on the arrow beside the 90 and select -90 from the list.
  5. Add another movement command and change the value to match the first
  6. Add another wait command, and then another 'point' command.
2 directions

Finally, at the top of the screen where there is a small image of the sprite, click the middle button next to the image of the sprite. This makes the sprite change direction to match his movement



Repeated movement (using forever)
Often we want the sprite to be animated for a period of time. In order to get the script that we have written to loop use the Forever instruction.