Check If Character Is On The Scene

Discussion in 'How Can I...?' started by shumekadventures, Sep 28, 2022.

  1. shumekadventures

    shumekadventures Boxer

    Joined:
    May 12, 2020
    Messages:
    10
    Likes Received:
    0
    Hello I cant program so I am stuck with a problem, I need to check if the character is still active and alive in a Scene so if it is not the Game Over UI appears.

    The problem is the character is made out of several copies of it self that are destroyed by collision and when the last one is destroyed the game just stops moving but goes anywhere. The camera is set to Follow Character.
     
  2. Elite Games

    Elite Games Avid Boxer

    Joined:
    Dec 18, 2019
    Messages:
    184
    Likes Received:
    84
    You need to keep track of character count in the scene.
    Then check if that number is equal to 0 then trigger the gameover event.
     
  3. shumekadventures

    shumekadventures Boxer

    Joined:
    May 12, 2020
    Messages:
    10
    Likes Received:
    0
    Ok, I will read all I can about character count and try again. Thanks.
     

Share This Page