Scratch game making tutorial 41

Goodie vs baddie - simple shooting game

You will create a game in which a Goodie and a Baddie fight it out.

You will control the Goodie with the arrow keys on your keyboard, and use your mouse to aim, and your space bar to fire. The Baddie will move and fire at you automatically.

Follow these instructions carefully, one step at at time.

 

1. Create a new game. Either open Scratch or if it is already open choose "File>New" ..

 

Now delete the cat sprite.

 

 

2. Click on the stage and add these scripts. You will need to create a new broadcast ..

 

 

3. Make these two variables ("for all sprites") ..

Arrange their displays on the stage in the top corners by dragging them ..

 

 

4. Paint 4 new sprites ..

IMPORTANT!!! Name the sprites!

 

 

5. Use "File>Save as" to name and save your game. Name it "goodie vs baddie".

 

 

6. Set your Baddie and Goodie sprites to only point left-right ..

 

 

7. Add these scripts to the Goodie (you can use the W A S D keys instead of the arrow keys if you like) ..

 

Adjust the "set size to" script to ensure your Goodie is not too big on the stage. Use this image as a guide ..

 

 

8. Use "File>Save" to re-save your game.

 

 

9. Add these scripts to the Goodie bullet ..

Press "B" to test your game. Use the mouse to aim and fire at the baddie. Press "E" to end your game.

 

 

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

 

 

11. Add these scripts to the Baddie ..

 

 

12. Add these scripts to the Baddie bullet ..

Press "B" to test your game. Press "E" to end your game.

 

 

13. You're done. Use "File>Save" to re-save your game.

 

 

14. What can you add to the game? Better costumes? A background?