in this case a health pack, my main player has the variable var hitPoints = 100.0 and when an object takes the health down what script would i use to bring them back up?
asked Jan 10 '10 at 03:12 AM
Your player controller code could contain something like this:
Make a health package have a collider with isTrigger checked and a script like:
About the same script can be used for objects applying damage (bullets, traps, ...) only
answered Jan 10 '10 at 03:57 AM