Health Regeneration

BroAppGamesBroAppGames Member Posts: 6
edited November -1 in Working with GS (Mac)
Hi I've been using tshirtbooth's tutorial on health bars ()

and its worked great the only thing is that i can seem to find a way to regenerate health. I've been trying for a few weeks
and this is what in essence i think i should be doing:

when game.life>10
every 5 seconds, change game.life to game.life+1

Today i set up an actor that displays the life points in text form. And it shows nicely when I'm hit and my health goes down, but every % seconds nothing happens. Im starting to think its a problem with the changing attribute than anything else.
if it helps the rule i gave as an example above is in the health bar itself.

Comments

  • DrGlickertDrGlickert Member Posts: 1,135
    Are you sure you don't want it to be; When game.life < 10?

    Not, game.life > 10
  • RedlerTechRedlerTech Member Posts: 1,583
    yup that's your problem ^^^
Sign In or Register to comment.