Advanced Platform Game

78 downloads 145 Views 78KB Size Report
A good platform game will give players the chance to get extra lives to help them complete the game...but don't make it too easy!! Create the sprites. 1. Create ...
GameMaker Tutorial 4

Advanced Platform Game

Task 11-Bonus Lives A good platform game will give players the chance to get extra lives to help them complete the game...but don’t make it too easy!! Create the sprites 1. Create the new sprite that you will need - spr_bonus

Create the object 2. Create a new object called obj_bonus

Create the Sound 3. Create a new sound called snd_bonus

Giving the player extra lives 4. Add a Collision with obj_bonus event to obj_character

49

GameMaker Tutorial 4

Advanced Platform Game

5. Add a Test Lives Event

They will only get the extra life id they have less then 3 lives

6. Add a Start Block event

7. Add a Play Sound event

Play a sound so they know they have collected a bonus

50

GameMaker Tutorial 4

Advanced Platform Game

8. Add a Set Lives Event

Increase the lives by 1

9. Add a Set Variable event

Increase the lives by 1

51

GameMaker Tutorial 4

Advanced Platform Game

10. Add a Destroy Instance Event Destroy the bonus so it can’t be picked up again

11. Add an End Block event

12. The Collision with obj_bonus event should now look like this

13. Add some bonus hearts into your level and try the game. You should only be able to pick them up if you have less than 3 lives.

52

Suggest Documents