Scratch game making tutorial 75

Auto ghost maze

In this tutorial you will create a game in which you character must survive in a maze full of ghosts!

 

NOTE: 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/scripts ..

 

 

4. Select the Pacman sprite and create a new variable called "Pacman health" ..

 

Position the variable display at the top right edge of the stage ..

 

 

5. Now add this code/scripts to the Pacman sprite ..

 

Press "B" to test your game.

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

 

 

6. Use the FIle menu to save your game. Name it something like "Auto ghost maze" ..

 

 

7. Select the Ghost sprite and add this code/scripts ..

 

 

8. Now duplicate the Ghost sprite 5 times so you have 6 ghosts (or more), then edit the "got to x: y:" script of each duplicate so each ghost starts from a different place in the maze.

 

Press "B" to test your game.

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

 

 

9. Use the File menu to save your game.

 

 

10. Select your Health pack sprite and position it in the maze then add this code/scripts ..

Duplicate it so you have at least 8 Health packs and drag them to position them at different locations around the maze.

 

Press "B" to test your game.

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

 

 

11. Save your game again.

 

 

12. You're done! Can you improve it?