613
« on: December 31, 2014, 04:46:34 am »
I am struggling with trying to implement a health points system for my enemy actors.
My issue is I don't know how to structure the code: Do I code it under the Scene, Enemy Actor , Player Actor, or Players Weapon Actor? Or do I spread it across a multiple, i.e , setting health points under Enemy Actor, detecting collision under Player Weapon, or set up a behaviour attached to the scene?
With the current set up, all enemy actors are sharing 2 health points. They need to have 2 health points individually.
UPDATE: I tried the suggestions below but still having no luck
If someone could explain the theory behind getting this to work that would be much appreciated.
Thanks