Hp Text scripting

Talk about making games.

Hp Text scripting

Postby Kooldudese » Sun Jan 27, 2008 6:23 pm

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.
User avatar
Kooldudese
 
Posts: 128
Joined: Sat Jan 27, 2007 5:20 pm
Location: In a house
Score: 0 Give a positive score

Re: Hp Text scripting

Postby Kooldudese » Sat Feb 02, 2008 5:47 pm

HELP! =(
User avatar
Kooldudese
 
Posts: 128
Joined: Sat Jan 27, 2007 5:20 pm
Location: In a house
Score: 0 Give a positive score

Re: Hp Text scripting

Postby zygoth » Sat Feb 02, 2008 11:05 pm

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.
Nova: 100% Vertigo/Mazeman: 100%
Visit my website to download them both! http://www.ketonegames.com
User avatar
zygoth
 
Posts: 140
Joined: Mon Jun 11, 2007 6:37 pm
Score: 5 Give a positive score


Return to Game Development

Who is online

Users browsing this forum: No registered users and 1 guest

cron