by savvy » Wed May 23, 2012 11:08 am
- Code: Select all
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=hp;
savvy
EDIT: I just realised, ++ and 30 wont make 30 seconds either, it will be increasing once a second, 30fps means the hp_timer will increase 30times per second.
For 30 seconds it needs to be hptimer>300.
--> For my help, i ask for a simple +1 if it helps! ^-^
--> I dont code, I type art which you dont understand.
--> I keep winning the 3D model challenge at college, teacher says: "you keep winning im not giving you prizes".