Page 1 of 1
Health bar!?
Posted:
Tue May 23, 2006 9:57 pm
by LUFFY
Does anyone know how to get 100/100 to be subtracted by 10 everytime you get hit?
Posted:
Tue May 23, 2006 10:29 pm
by Joshua Worth
Make a variable with the value 100. Then make a Collision sensor through the add menu on the actor, change some settings, Make a script editor from the drop down menu and type in "(VARIABLE_NAME)-=10;" dont forget the semi-colon at the end. Click ok and then click Immediate action.
I dont have time for a very detailed description, sorry. I hope this helped a little!
Posted:
Tue May 23, 2006 11:27 pm
by LUFFY
How do you make a varible of 100?
Posted:
Wed May 24, 2006 3:20 am
by Joshua Worth
Select the action, for example, create actor(when the game starts, or anothe actor creates that actor). Press add and then "create actor" then select "script editor" then type in "(VARIABLE_NAME)=100;", then, when the actor gets created, the variable will equal 100.
Just in case you didn't know: There are animated tutorials you can follow in the Help menu.
Posted:
Wed May 24, 2006 11:53 pm
by LUFFY
Huh???????? {i am a newbie at this}
Posted:
Thu May 25, 2006 9:22 am
by Joshua Worth
Did you have a look at the tutorials and help file?