Trying To Add A Death Counter

Discussion in 'How Can I...?' started by Jooolz, Oct 22, 2018.

Tags:
  1. Jooolz

    Jooolz Boxer

    Joined:
    Aug 12, 2018
    Messages:
    11
    Likes Received:
    2
  2. AaroArts

    AaroArts Miniboss Boxer

    Joined:
    Jun 22, 2016
    Messages:
    1,546
    Likes Received:
    826
    Instead of a Death Counter, why not add an Attempts to your Game Over UI.
    Just place a Point at the very start of your Game, then on the Attempts label, set it to how many of those points have been collected :D
     
  3. Jooolz

    Jooolz Boxer

    Joined:
    Aug 12, 2018
    Messages:
    11
    Likes Received:
    2
    Problem is, I have a lot of checkpoints in every world. So collecting one point at the start of the level won't work
     
  4. AaroArts

    AaroArts Miniboss Boxer

    Joined:
    Jun 22, 2016
    Messages:
    1,546
    Likes Received:
    826
    It will if you set the Label to the first World
     
  5. Jooolz

    Jooolz Boxer

    Joined:
    Aug 12, 2018
    Messages:
    11
    Likes Received:
    2
    I mean, I have 5 checkpoints in the first world alone. If for example I die after the third checkpoint, game restarts right there and I won`t collect the point I placed at the start of the world. Correct?
     
  6. AaroArts

    AaroArts Miniboss Boxer

    Joined:
    Jun 22, 2016
    Messages:
    1,546
    Likes Received:
    826
    Another option would be to create an Action button on top of the Play Button on the Home Screen and the Restart Button on the Game Over screen. Set this Action Button to an Opacity of 0, untick Block Touch Through, and have it reward the player 1 point.
    This way, every time you press to play, or press restart, it tracks Attempts, or Deaths if that's what you'd rather.
     
  7. Frederik

    Frederik Boxer

    Joined:
    Oct 2, 2018
    Messages:
    48
    Likes Received:
    14
    No need to mess around with points or coins.
    '3' is probably 'Max Refill' count. Set it to 0. And set Purchase button with OneTimePurchase to Default. Put purchase button over your Restart / Continue / Play button.
     
  8. Jooolz

    Jooolz Boxer

    Joined:
    Aug 12, 2018
    Messages:
    11
    Likes Received:
    2
    Yes! This worked, thanks a lot both of you.
     

Share This Page