Page 1 of 1

I cant figure out how you make a good health bar

PostPosted: Sat Jan 27, 2007 5:34 pm
by Kooldudese
How do you make a health bar that whenever touched goes down by alittle :?: plz post the codes if u can tell me how THX!! and also, i wanna make a BAR not just numbers.

PostPosted: Sat Jan 27, 2007 7:57 pm
by Game A Gogo
create an animation whit a health bar, that goes from full to empty.
Create an actor whit that animation.
On create actor do this: Animation direction: Stopped
On the main actor, do the event that should generate your health decreasement and enter this code:
Code: Select all
healtbar.animpos+=1;
if(healtbar.animpos>healtbar.nframes)
{
         Destroy event actor thingy...
}


The "if(statement)" should destroy the actor if the health is at zero (Empty).

PostPosted: Sat Jan 27, 2007 9:42 pm
by Kooldudese
THX

PostPosted: Sat Jan 27, 2007 10:26 pm
by Game A Gogo
my pleasure, if you need some tune up/help/question about Health bar, ask me.

PostPosted: Sun Jan 28, 2007 1:44 pm
by Kooldudese
umm, have a question, i wanna make a hp bar that goes up at the same time as the numbers... how do you do that, is it the same way as the hp bar?

PostPosted: Mon Jan 29, 2007 1:07 am
by Game A Gogo
I don't get it