Add Health Bar And Coins At The Sametime

Discussion in 'How Can I...?' started by bgwiss, Nov 10, 2018.

  1. bgwiss

    bgwiss Boxer

    Joined:
    Oct 31, 2018
    Messages:
    58
    Likes Received:
    19
    Hi Everyone,

    I have successfully added a health bar to my game, but also noticed that coins affect the health bar. So what can I do make those coins work?

    Thank you
    Wiss
     
  2. Josh (Nology Games)

    Josh (Nology Games) Head Moderator Staff Member

    Joined:
    Nov 27, 2017
    Messages:
    606
    Likes Received:
    198
    Use points for the health bar instead of coins
     
  3. bgwiss

    bgwiss Boxer

    Joined:
    Oct 31, 2018
    Messages:
    58
    Likes Received:
    19
    Thank you Josh, that one worked. However I faced another problem I don't know what caused it. After the health bar is over it takes me to the game over menu, but the restart button doesn't work even though it was working normally before.

    maybe some sort of bug. not sure
     
  4. Josh (Nology Games)

    Josh (Nology Games) Head Moderator Staff Member

    Joined:
    Nov 27, 2017
    Messages:
    606
    Likes Received:
    198
    Check that you have set the event Observer to "current" as it may play up if it is set to total.
    Back sure your button is set correctly.
     
  5. bgwiss

    bgwiss Boxer

    Joined:
    Oct 31, 2018
    Messages:
    58
    Likes Received:
    19
    Hey Josh,
    I have linked the healthbar to the game over when my character was having 3 lives, so as soon as the healthbar was 0 it was calling the gameover scene and the game is still playing.
    I just removed the link and things worked smoothly.
    Thanks
     

Share This Page