Scratch exercise 24

Throw a ball

Complete these steps ..

 

1. Create a new game. Either open Scratch or if it is already open choose "File>New" ..

 

 

2. Select the stage and add these scripts ..

 

 

3. Select the cat sprite under the stage and re-name it "Cat". Then select the "only face left right" button ..

 

Now, add these scripts to the cat sprite ..

 

 

4. Make a simple ball by painting a new sprite.

Click on the "Paint new sprite" button under the stage to open the Paint window.

 

Now select the circle tool and hold down the shift key on your keyboard as you drag the mouse-pointer to create a perfect circle.

 

When you are done, click "OK" and then re-name the sprite "ball".

 

 

5. Add these scripts to the ball to allow the Cat to throw it whenever you press the spacebar on your keyboard ..

 

 

6. Go to "File > Save as" and save your game. Name it "Throw ball".

 

 

7. Press the "B" key and then use the left and right arrow keys and space keys to move the cat and throw the ball.