Scratch game making tutorial 104

Monster escape

In this tutorial you will create a simple game in which a cat must collect all the bananas without being caught by the monster.

 

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. Click to select the Cat (sprite1) under the stage.

Re-name it "Cat".

Click the "only face left right" button ..

If you are using Scratch desktop add this code ..

 

 

3. Now add the following scripts to the Cat ..

Look at the scripts. We are using the "b" key on our keyboard to BEGIN the game, and the "e" key to END it.

 

Press the "B" key on your keyboard and then move the mouse-pointer around the stage. The Cat should follow it.

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

 

 

4. Use the File menu to save your game. Call it "Monster escape" ..

 

 

5. Now we will add an object which the Cat will collect.

If you are using Scratch desktop, click the Choose a sprite button under the stage then choose an object ..

 

If you are using Scratch 1.4, click on the "choose new sprite from file" button under the stage. It's the middle one ..

Open the "Things" folder by selecting it and clicking "OK" ..

Select "bananas1" and click "OK" ..

 

 

6. You should now see an object or the little "bananas1" thumbnail image under the stage. It may be named "sprite1". This time we will not bother to re-name it ..

 

 

7. Select the object/bananas sprite and then add this code/scripts to it ..

 

 

8. Press the "B" key on your keyboard to test your game. The bananas should disappear when the cat touches them.

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

 

 

10. Use the File menu to save your game.

 

 

11. We need 10 banana sprites spread around the stage for the Cat to collect.

Right-click the banana sprite and select "duplicate". Click on the duplicate on the stage and drag it to somewhere else. Do this another 8 times, spreading your bananas around the stage ..

 

 

12. Now we need our monster. Choose a new sprite.

 

 

13. If necessary, re-name the sprite. Name it "monster".

Now if you are using Scratch 1.4 click the middle of the 3 vertical buttons to make sure the monster cannot turn upside down ..

 

If you are using Scratch desktop add this code ..

 

 

14. If you are using Scratch 1.4, click on the monster's "Costume" tab then click the "Import" button and select the "dragon-1b" costume ..

We now have two costumes for the monster. We will use them to animate the monster. We do not need to re-name the costumes.

 

 

15. Add this code/scripts to the monster ..

 

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.

 

 

16. Use the File menu to save your game.

 

 

17. Well done, you're finished! Can you add a second monster?