Hp Text scripting

Posted:
Sun Jan 27, 2008 6:23 pm
by Kooldudese
i need help with scripting... again... i need to know how to make an "hp text" (an actor) and when you attack an enemy... the hp of the text actor (hp number) goes down (by how much, i still have to decide) ... im still working on the same game... but im almost done.
Re: Hp Text scripting

Posted:
Sat Feb 02, 2008 11:05 pm
by zygoth
Set on whatever event that causes damage:
Hptext.textNumber = Hptext.texNumber - (whatever number for damage);
Note that the Hptext must have only numbers in it-- just put a 0 and you will be fine.