Game Guides > Game FAQ >  

How do you make lives on game maker 7

How do you make lives on game maker 7
Making lives is simple on Game Maker.

  • First of all, select the object who'll need the lives.
  • Click the Control tab
  • Under the Create event, select the Set Lives action, and choose how many lives you want the player to have
  • Then select the No More Lives event (located in other). Select destroy object or something you want it to do
  • You'll also need to make it so you loose lives. You do this by going to the action (e.g. collision with enemy), and selecting the Set Lives action again. Write -1, and tick the relative box. This means it will subtract 1 life
That's the simple way. But you need to display your lives. You can do this in a couple of ways:
  • Under the Create event, select the Score Caption action and show the lives
  • Make a separate object and select the Draw event. Then select Draw Lives, and either tick the relative box (it will be exactly where the object is), or write down a position in the x and y values
  • Repeat the all above, except for the last part. Instead of selecting Draw Lives, create a separate sprite life image, then select the Draw Life Images option. Select the sprite and positioning
It shouldn't be too hard