Main Plane Destroyed

Big Explosion

Once the main plane has lost all its health, it should blow up, be destroyed in a big explosion.

Obj: explosion2

Create a new explosion2 object. Depth 0.

Add an Animation End event with the following actions..

  • Destroy Instance (self)
  • Sleep - to make sure the exploding sound is finished, 1 sec.
  • Create Instance: create a myplane in the same spot.
  • Set Lives: lose a life

life controller

No more lives

Go into your life controller object and add a No More Lives event:

  • Show highscore table
  • Restart the game

No more Health

When the main plane has No More Health, we want it to turn into a big explosion. 

  • Set Health: set it back to 100 
  • Change Instance: if no more health, want to change object: myplane into a big explosion, explosion2

Test it out - when you run out of health, does your plane explode? do you lose a life?