Hi,
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?
Example:
The 'enemies' family has a 'damage' variable. When hit I add to its damage.
[attachment=0:1l3cmgrv][/attachment:1l3cmgrv]
As each member type has different 'health' values, each member should compare the damage they took against their own health.
[attachment=1:1l3cmgrv][/attachment:1l3cmgrv]
Isn't this how it should work?