Page 1 of 1

Hp Text scripting

PostPosted: 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

PostPosted: Sat Feb 02, 2008 5:47 pm
by Kooldudese
HELP! =(

Re: Hp Text scripting

PostPosted: 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.