Health Regeneration
![BroAppGames](http://forums.gamesalad.com/applications/dashboard/design/images/defaulticon.png)
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.
![](https://img.youtube.com/vi/7KgoAGuQTGs/0.jpg)
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
Not, game.life > 10