Scratch exercise 32

 

Keep score

Complete these steps ..

 

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

 

 

2. Re-name sprite1 "cat"

 

3. Import a picture of a helicopter from the "transportation" folder. Re-name it "helicopter".

 

4. Paint a simple small ball and re-name it "ball".

 

5. Click on the "variables" script category .. . Click "make a variable", select "for all sprites" and name it "score"

 

6. Copy these scripts onto the cat ..

 

7. Copy these scripts onto the ball ..

 

8. Copy these scripts onto the helicopter ..

 

9. Press the "b" key to start your game and the space bar to fire.

 

10. Go to "File > Save as" and save your game. Name it "keeping score"

 

Example game file (right-click to download)