End game when one copy of a character get defeated

Discussion in 'How Can I...?' started by st101, Jun 13, 2016.

  1. st101

    st101 Boxer

    Joined:
    May 2, 2016
    Messages:
    6
    Likes Received:
    4
    So i'm working on a game with one character but 2 copies of the character in the scene and when one of them get defeated the game doesn't end it only ends when all copies get defeated. Is there a way to make a game ends when one copy of the character get defeated.
     
  2. heathclose

    heathclose Miniboss Boxer

    Joined:
    Jan 28, 2016
    Messages:
    1,810
    Likes Received:
    1,026
    @Phill Mason do you have any wisdom from your time making Mr. Buzz?
     
  3. Phill Mason

    Phill Mason Serious Boxer

    Joined:
    Sep 25, 2015
    Messages:
    880
    Likes Received:
    721
    Sure do @heathclose :)
    Hi @st101 welcome to the forums. You need to make the defeated animation of your character a large enough object that covers the entire screen when your character gets hit. This will make sure both copies of the character get killed. I had exactly the same issue when I made Mr Buzz, which has two character parts and this works for me.

    I used a small transparent square and stretched it fill the whole screen, set the object type to enemy bullet and destroy character and had it spawn rate at 1. So when you die, this huge object that you can't see spawns and kills all on screen character. Hope that helps.
     
  4. st101

    st101 Boxer

    Joined:
    May 2, 2016
    Messages:
    6
    Likes Received:
    4
    Hi @Phill Mason, Thank you for this you helped me a lot i appreciate it.
     
    heathclose and Phill Mason like this.

Share This Page