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).