Health bar

Hey all. I have this problem with my game that i can't fix.

i've made a health bar and when enemy hit my actor i lose health. but what i want it to do is when i reach 0 health i want it to say like "game over" and refresh the game from the beginning, any advice on how i could do that?

Comments

  • MattButlerStudiosMattButlerStudios Member Posts: 486
    edited March 2014

    Are you using an attribute for the health? If so just make a rule that says when attribute (the one you used for heath) = 0, display text "game over" or show image "game over" then insert a reset scene behavior

  • SajadKazalSajadKazal Member Posts: 20

    Thank you very much, it worked.

  • MattButlerStudiosMattButlerStudios Member Posts: 486

    Glad I could help!

Sign In or Register to comment.