health bar question

allc1865allc1865 Member, PRO Posts: 777

Hi everyone,

I created a health bar, and when it equals 0, gameover.
everything works except, when it's gameover, the health bar doesn't come back.
Any way to fix this?

thanks :)

Best Answer

  • tatiangtatiang Posts: 11,949
    Accepted Answer

    One problem is that you aren't resetting game.lives to 4 manually. A scene reset does not reset any game attribute values. So you have to use a change attribute statement right before the reset scene behavior in order to do that. I would change game.gameover to false right before you reset the scene.

    New to GameSalad? (FAQs)   |   Tutorials   |   Templates   |   Greenleaf Games   |   Educator & Certified GameSalad User

Answers

Sign In or Register to comment.