Scratch Cat Walk Project
Simple movement In Scratch the figure is called a Sprite. One of the easiest programs to make is one that moves a sprite on the screen. 1. Click on the yellow Control button in the topic box 2. A series of control instructions will appear 3. Select the first one when flag is clicked and drag it to the Scripts area of the screen. 4. Next click the blue Motion button to the left of the Control button to evoke the motions instruction set 5. Drag the move 10 steps button across and lock it underneath the earlier command. Your program should look like the one on the right. 6. Click the green flag near the top right of the Scratch screen to run your program. Amending the program 1. You can change the amount of movement by altering the value in the movement command. Change the movement value from 10 to 40. 2. Click the Control topic button again and select the wait 1 secs command 3. Click the Motion topic 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. Finally, at the top of the screen where there is a small image of the sprite, click the middle button This makes the sprite change direction to match his movement.
Click this button so that the sprite faces the other direction when it changes direction
L1 R2 CatWalkproject
Scratch Cat Walk Project
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.
Step 1 - click the move 40 steps command and drag the script apart
Step 2 - Select the Forever instruction from the Control topics
Step 3 Drag the set of instructions that you made previously back inside the forever instruction
L1 R2 CatWalkproject
Scratch Cat Walk Project
Getting the sprite to walk (using costumes) Click on the costumes tab note that the cat sprite comes with two costumes
Rename the sprite as Cat
Rename the costumes Catwalk1 and Catwalk2
Before completing this exercise dump your existing script into the left had side of the screen (this will delete it) Create a new script and drag in the move 10 steps instruction
Drag in the switch to costume and select Catwalk2 from the drop down list
Drag in a wait and change the value from 1 sec to 0 1 secs Repeat the move, switch costume and wait steps to go back to Catwalk1 Add an if on edge, bounce instruction
L1 R2 CatWalkproject