Scratch exercise 23

Car park

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

 

NNOTE: You can use any version of Scratch.

 

Complete these steps ..

 

1. Open Scratch, OR create a new game (from the top menu choose "File>New").

 

 

2. Download, save and then open this game file ..

 

 

3. Select the stage, and add this code/script ..

 

 

4. Add this code/script to the parking space sprite ..

 

 

5. Add this code/script to the Target sprite, and then drag it into position at the bottom of the Parking space ..

 

 

 

6. Select the car and add this code/script to set its properties ..

 

Now add the code/script to allow the player to move and steer it ..

 

Press the "B" key on your keyboard to test your game.

When you are ready, press the "E" key to end your game and continue working on it.

 

Finally, add the code/script to make the car react when it either touches the red lines or touches the green target ..

 

Press the "B" key on your keyboard to test your game.

When you are ready, press the "E" key to end your game and continue working on it.

 

 

7. Use the File menu to save your game. Name it "Car park v1" ..

 

 

8. Well done, you are finished!