Healthbar won't decrease
Posted: Mon Apr 30, 2012 6:52 am
Hi I have a healthbar with this code below but how can I have it decrease the bar which is in animpos of 8.
here's my code:
hp_timer++; //this is my timer which makes the health bar increase in 30 seconds.
if(hp_timer>30 && hp<max_hp)
{
hp++; // this is what increases my health bar
hp_timer=0;
}
animpos=8;
here's my code:
hp_timer++; //this is my timer which makes the health bar increase in 30 seconds.
if(hp_timer>30 && hp<max_hp)
{
hp++; // this is what increases my health bar
hp_timer=0;
}
animpos=8;