How Can I End The Game When Something Other Than The Character Is Destroyed?

Discussion in 'How Can I...?' started by brouleau, May 9, 2017.

  1. brouleau

    brouleau Boxer

    Joined:
    May 9, 2017
    Messages:
    27
    Likes Received:
    23
    Is there a way to end the game when something that is not the character is destroyed? For example, assume my character is invincible and is defending something. When the object that is being defended is destroyed, I would want the game to end.

    Any ideas?
     
  2. playsgames6666

    playsgames6666 Miniboss Boxer

    Joined:
    Nov 13, 2015
    Messages:
    1,168
    Likes Received:
    745
    In the death animation of your object, you would need to place in another object and set it to destroy character, and make i big enough to cover the screen to ensure it will hit your character.
     
    blad300 likes this.
  3. brouleau

    brouleau Boxer

    Joined:
    May 9, 2017
    Messages:
    27
    Likes Received:
    23
    This is the conclusion I eventually reached with one caveat; if you want the object that is destroyed to NOT be deadly to the character, you'll need to use a spawner inside of the death animation instead of simply an enemy.
     
  4. blad300

    blad300 Serious Boxer

    Joined:
    Oct 8, 2015
    Messages:
    515
    Likes Received:
    276
    Or in your Object death animation add a reward action point, big enough to cover the screen and in your GamePlay UI add Event Observer to redirect when is collect one point, in that way you can add a redirect to next level directly and have a Game Over Ui also
     
    playsgames6666 likes this.

Share This Page