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!

Complete these steps ..

 

1. Create a new game file.

2. Download, save and import each of these sprites/costumes ..

 

3. Select the Stage and add these scripts ..

 

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

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

 

Now add these scripts to Pacman ..

 

5. Save your game using "File>Save as". Name it something like "Auto ghost maze".

 

6. Select the Ghost sprite and add these scripts ..

 

7. Now duplicate the Ghost sprite 3 times so you have 4 ghosts, then edit the script of each duplicate so each ghost starts from a different place in the maze.

 

8. Re-save your game.

 

9. Select your Health pack sprite and position it in the maze then add these scripts ..

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

 

10. Save your game again.

 

11. You're done! Press "B" or click the Green Flag to test your game.

 

12. Can you improve it?