Triggering health bar

SlightlyGrimSlightlyGrim Member Posts: 51
edited November -1 in Working with GS (Mac)
Alright

I need a bit of help, I've made a health which decreases with time but I need it to stop when the player enter a specific area and then to increase back up again. Any help would be great.

cheers

Comments

  • UtopianGamesUtopianGames Member Posts: 5,692
    What about....

    Set a global boolean "health up" when your player reaches the desired area set "health up" to true otherwise health up to false.

    In your timer that decreases health set it inside a rule that says if "health up" is false take away health other wise if health up is true increase health.

    Hope this helps.

    Darren.
  • SlightlyGrimSlightlyGrim Member Posts: 51
    Cheers for that, work perfectly. Next issue is I want the health bar to regain health when the person is in the area, got that to work but what I want to know is how to stop gaining health

    would be great for more help
  • juzcookjuzcook Member Posts: 259
    you mean stop gaining health after you're "full"? if thats the case you just need a rule like:

    When Health is less than or equal to <insert max health> then regain as utopian explained
Sign In or Register to comment.