Dear all,
I would like to know how can i make a "parent" object class. For example instead to have an event for each type of collision ie "bullet - blue monster" i would like to have a "bullet- enemy" event and be able to have different kinds of enemies to be checked under the same event. In example:
Enemy class,
Health
Speed
Enemy Blue
Health = 5
Speed = 10
Sprite: X
Enemy Red
Health = 10
Speed = 20
Sprite: Y
But i would like to check for collisions with Enemy in general, not with Blue and Red specifically.
Best regards,