Question about health.
Posted: Wed Sep 13, 2006 7:48 pm
Okay, im not doing any ancy health bar im just doing a number life bar. So anyway, i have collision on any side of my enemy and make it so the health goes - 15. so my problem is that if i hit the enemy it goes - 14, not to 75. how do i fix this? and i wanna do an if on zero. but anyway heres what im doing.
when the life gets to zero can i do, if (life) = <0; Destroy Actor ("player");
- Code: Select all
life.textNumber = life.textNumber - 15;
when the life gets to zero can i do, if (life) = <0; Destroy Actor ("player");