0% found this document useful (0 votes)
80 views2 pages

Scratch-Lesson: Get The Cat To Move

This document provides instructions for using Scratch to control the movement of a cat sprite. It explains how to: 1) Drag and drop motion blocks to make the cat move left and right repeatedly by changing its x position; 2) Enclose the motion blocks in a forever loop so the cat moves continuously without needing to click blocks; 3) Add a green flag event block to start the cat moving when the flag is clicked.

Uploaded by

Rukmani Venkat
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
80 views2 pages

Scratch-Lesson: Get The Cat To Move

This document provides instructions for using Scratch to control the movement of a cat sprite. It explains how to: 1) Drag and drop motion blocks to make the cat move left and right repeatedly by changing its x position; 2) Enclose the motion blocks in a forever loop so the cat moves continuously without needing to click blocks; 3) Add a green flag event block to start the cat moving when the flag is clicked.

Uploaded by

Rukmani Venkat
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

SCRATCH- LESSON

GET THE CAT TO MOVE

1. Drag and drop

into script area. Double click block to move sprite.

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:

7. Rename Sprite1to cat


8. Do you want the cat to keep walking forever, without you clicking on the commands
all the time? Add a FOREVER block and place the two blue blocks inside it.

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.

10. Save the program. Call it MoveCat.


CHALLENGE TIME:
Try and make the cat:
1. Move slowly
2. Move backwards

GET THE CAT TO START AT THE SAME SPOT

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)?

2. What happens when you point in direction, 0, 180, -90?

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.

You might also like