I finally given up trying to figure this out myself: What's the best way to give units of the same Active Object individual health? Up until now I would use speed as a sort of damage indicator, but it's really not practical.
Printable View
I finally given up trying to figure this out myself: What's the best way to give units of the same Active Object individual health? Up until now I would use speed as a sort of damage indicator, but it's really not practical.
You mean initially?
I suppose you could make dummy objects with specific alterable values for the health, and place these over your units in the frame editor, and then just do an "overlapping" check to set the health of the units to the alterable value of the dummy object that's overlapping it. Then destroy the dummy object.
Add an alterable value to the object, call it health, and set it to something. Then when you want to injure the object, subtract from health. Then add an event: Compare to health less or equal to 0: destroy object.
Whew, thanks! How simple, sorry about that.