Scratch exercise 23

Car park

In this game, you must try to park a car without touching the red lines.

 

To make the game, complete these steps ..

 

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

 

 

2. Right click to delete sprite1 (the cat)

 

 

3. Select the stage, and add these scripts ..

Now click on the "Backgrounds" tab and then click "edit" to colour the stage a dark grey.

 

 

4. Click the "Paint new sprite" button under the stage to paint a new sprite ..

 

Now, paint a new sprite in the shape of a parking space, like this ..


Re-name it "Space"

 

 

5. Paint a new sprite in the shape of a green dot to act as the target, like this ..

 

Re-name it "Target"

 

 

6. Right-click to download and save this sprite ..

Car.sprite

Now, use the "Choose new sprite from file" button under the stage to import it as a new sprite ..

 

 

 

7. Use "File>Save as" to save your game. Name it "Car park" ..

 

 

8. Select the car and add these scripts to it ..

 

 

9. Use "File>Save" to re-save your game.

 

 

10. You need to re-size the space so it is just a little bigger than the car. Add this script, and edit the size until it looks right ..

Note: 90% may not be right for the space you have painted. Find the right size.

 

 

11. You need to re-size the target so it sits at the bottom of the space. Add this script, and edit the size until it looks right ..

Note: 60% may not be right for the green target sprite you have painted. Find the right size like this ..

 

 

12. Use "File>save" to re-save your game.

Well done, you are finished! Press "B" to begin and then use the arrow keys to drive your car into the space.