Page 1 of 1

OK, I need help with my healthbar.

PostPosted: Sun Oct 28, 2007 6:52 pm
by Qsmash
My healthbar isn't supposed to go pass 20hp but when the player eats some more food it goes straight pass it. Can someone tell me what's wrong?

Re: OK, I need help with my healthbar.

PostPosted: Mon Oct 29, 2007 3:17 am
by DollMaster
You need to do something like this:

if(health>healthmax)
health=healthmax;

Re: OK, I need help with my healthbar.

PostPosted: Mon Oct 29, 2007 10:23 am
by Kalladdolf
I think I have a turtorial about that.
U'll have to wait till I get home.
Check out my caverunner in the game demo section, I used a healthbar there.

Edit: Uh, I thought u were talkin' about a visual health bar... never mind, DollMaster covered it. :D