Help With Health Scripting with a player
Well Heres what my game is.
I have a "Character" that i can't get him to die i build the health actor put a set health by variable = variable terms
but i can't get him to die at 0 health.
is that better...
Bee-Ant wrote:make the healthbar actor use the sprite like this
make a global variable called "hp"
...
int hp = 7;
hp = hp - 1;
if(hp = 0)
{
(replace withwhatever you want to happen);
(replace with whatever you want to happen [takes at least 2 lines]);
}
Users browsing this forum: No registered users and 1 guest