How do I keep track health bar value to the next layout

0 favourites
  • 3 posts
From the Asset Store
Simple and easily editable template for a dynamic camera that zooms in and out based on how far apart the players are.
  • Hi guys .. I'm having problem with my health bar.

    As soon as my character goes to the next layout, the hp resets to full ..

    How do I make the hp value carry on to the next layout?

    I.E : Layout 1 : 50/50 -> hit by mob -> 40/50 -> Goes to layout 2 : 40/50 instead of resetting the health to 50/50

    Note : I dont use global variables ... just setting it it to "every tick" and I use "add variables" for my health bar

  • This is a case where you SHOULD use global variables. I can't understand how you have it set up from your description, but you should have a global for "health" that you manipulate based on your game. Then, you can display something on screen to represent it based on the variable.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • This is a case where you SHOULD use global variables. I can't understand how you have it set up from your description, but you should have a global for "health" that you manipulate based on your game. Then, you can display something on screen to represent it based on the variable.

    gotcha ;D thank you ..

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)