So I want to make a way to damage my enemies, but I have ( for now ) 3 different guys.
I know how to make them receive damage, but I want to make it in a way so I dont have to write conditions for every enemy.
The way to do it are families.
And that is not hard but can I make that every enemy in my family has different amount of health.
FamilyEnemy on collision with sword = FamilyEnemy subtract 10 from EnemyHealth
So EnemyHealth is family instance variable and its set to 100. But I need all 3 different enemies to have different amounts of health(50, 100, 150 ).
Is there a way I can make every enemy have different amount of health, but still being in the family