Scratch game making tutorial 99

Lord Of The Rings

In this tutorial you will make a game in which you must try to destroy a target protected by rings.

 

You will need to rotate the rings and line up gaps in them so you can fire and hit the target. The target will need to be hit 4 times.

 

Complete these steps ..

 

1. Create a new game (From the top menu choose File>New).

 

2. Select the stage and paint it a dark colour. Black is best. Do NOT use a gradient.

 

3. Download and save these sprites, then use the "choose new sprite from file" button under the stage to add them to your to your game ..

 

4. Create these variables ("for all sprites") ..

Un-tick "target turn rate", and then position the "level" variable display at the top left corner of the stage ..

 

5. Add these scripts to the stage ..

Note that there is a "reset" broadcast. This will be used every time the player successfully hits the target that the rings protect. The rings will "reset" to random rotations, so they must be lined up again for the next attempt.

 

6. Select the cat sprite, re-name it "Cat" and click on the "only face left-right" button to make sure it can't turn upside down ..

Now add these scripts ..

These scripts control the movement of the cat (towards the mouse pointer) and ensure it cannot run through the blue rings.

Test the script by pressing "B" to begin your game and then moving the mouse-pointer. press "E" to end your game.

 

7. Use "File>Save as" to save your game. Name it "Lord of the rings".

 

8. Select the bullet and add these scripts (the comments are optional) ..

Test the script by pressing "B" to begin your game and then click the left mouse button to fire. Press "E" to end your game.

 

9. Now select the target sprite and add these scripts ..

Note that the target is always turning but its speed (which is controlled by "target turn rate"), increases every time the bullet hits it.

 

10. Use File>Save to re-save your game.

 

11. Select the "ring 1" sprite and add these scripts ..

Test the script by pressing "B" to begin your game and then use the left and right arrow keys on your keyboard. press "E" to end your game.

 

12. Copy the "ring 1" scripts to "ring 2". Now edit the size and turn values until they are like this ..

Note that this ring is smaller than "ring 1", and its rotation speed and direction is different.

 

13. Copy the "ring 1" or "ring 2" scripts to "ring 3". Now edit the size and turn values until they are like this ..

 

14. Use File>Save to re-save your game.

 

15. Select "ring 4" and add these scripts ..

This ring rotates by itself, but whenever the target is hit it changes its costume to make the game harder.

 

16. Finally, add these simple scripts to the "You win text" sprite to ensure it does not show until the target is destroyed ..

 

17. Use File>Save to re-save your game.

 

18. Well done, you're finished! Press "B" to test your game. Can you you improve the game by adding your own mods?