I'm having problems with adressing enemies in a family. Generally applying damage to members doesn't seem too work correctly, can someone give me a general idea what the correct approach is, to reference an individual in the family?
I'm defining damage on collision per family and have my individual enemy types react to it differently, but i always get an individual per type not reacting correctly. How should i reference them correctly?
The 'enemies' family has a 'damage' variable. When hit I add to its damage.
As each member type has different 'health' values, each member should compare the damage they took against their own health.
Isn't this how it should work?