by Kooldudese » Sun Apr 27, 2008 12:08 pm
i dont understand why it wont work... but the script wont work, first let me explain how i made the hp bar because it isnt the normal hp bar, what it has is two actors that are relative to each other, one actor is an canvas actor, it is the actor that shows the hp bar visually, and the other actor is the text actor which is relative to the canvas actor, it shows how much hp there really is in text. I have two variables one is health1p the other is health2p, and these two variables helps the canvas actor (the hp bar) figure out how to draw the hp when it lowers (or possibly when it grows) but in anycase, this variable is not directly relative to the text actor, but its relative to the canvas actor(the hp bar), if you can figure out why any of this could interfear with the script:
if (hp1text.textNumber < 0)
{
hp1text.textNumber=0;
}
//the "hp1text" is the text actor, and not the canvas actor.
thx for all the help in advance!