Professional Documents
Culture Documents
2. Change the number 10 to 50, double click and see what happens. Change it to 80, what
happens now?
3. What happens when sprite goes to the end of the screen?
4. To bring it back ,drag
into script area.
5. Double click the blocks to keep the cat walking from side to side.
6. Is your cat walking upside down? Now click on this button to make your sprite go from
left to right, without going upside down:
9. A traditional way to start a scratch program is by pressing the Green flag on the top.
Attach the hat block on the top. Now click on the green flag and watch the cat move.
Press the stop sign, to stop the cat.
1. What if you want to start the cat at the middle of the stage?
2. Now try changing value of X and Y. The maximum X value can be between -240 (left)
to 240 (right). The maximum Y value can be between -180 (top) to 180 ( bottom).
GET THE CAT TO CHANGE DIRECTION
1. What if you want the cat to start in the middle of the stage and always walk in the same
direction (to the right)?
CHALLENGE TIME:
1. Bring in a new sprite.
2. Copy all the code from the cat to the new sprite.
3. Now click on the green flag to start the program.
New word: Initialization - Initialization lets us set values at the beginning of a program:
e.g. Go to X:0, Y:0 will always make the cat go to the center of the stage. Point in direction 0
will always make the cat face up. In games, we always want to initialize the score to 0
before we start the game.