Page 1 of 1

HB Bar. Literaly.

PostPosted: Sat Mar 17, 2007 4:26 pm
by Hblade
Hey, I made an HP bvar with an animation of 100 frames, and it goes down, but, I need to know how to make it stop when ever you get hit by somthing, Like, the ANimindex, I need to know how to use that. Can someone please help me out. I am making a megaman game.

PostPosted: Sat Mar 17, 2007 10:19 pm
by DilloDude
Add a create actor event which changes the animation direction to stopped. On draw actor, set animpos to Health(or whatever variable you want).
Code: Select all
animpos = Player.Health;

PostPosted: Sat Mar 17, 2007 10:33 pm
by Hblade
I have a new way. It's like, as soon as the bar reaches it's last point, then it's at the last point and the character is destroyed, but, it's like this. animpos = animpoos -1; and, if animpos is 100, then the character is like this.
Here is the HP bar. 1 with out hit, and one with hit 1 HP loss. Nevermind,. I won't pus post them.