Health bar growing too long!
![tcla75](http://forums.gamesalad.com/applications/dashboard/design/images/defaulticon.png)
So I saw this post from a year ago in this forum and I was having the same problem. I have a star falling to the ground and have it set to destroy when it hits the actor but add +2 to the health. The answer that works for the other person who posted this question was
chage attribut game.health to min( game.health+20,100)
Thanks to tshirtbooth but weirdly when I did this it made the star pass through the actor and nothings happens. See below not sure what I'm doing wrong?
chage attribut game.health to min( game.health+20,100)
Thanks to tshirtbooth but weirdly when I did this it made the star pass through the actor and nothings happens. See below not sure what I'm doing wrong?
![image](http://img864.imageshack.us/img864/8876/screenshot20110427at140c.png)
Comments
You could add another rule if game.health<100 if you don't want the bar to grow bigger than it should.
Darren.
You can add a simple limit.
When health > (maximum)
Change health attribute to (maximum)
Cheers