<font color=teal>I have few different kinds of monsters with different behaviors and all, but most rules applying to the interactions with the player are identical for each one of them. Like if the player collides with the opponent, he loses a certain amount of hp (depending on monster's and player's instance variables; the instance variables are unique for each monster and they can change), same happens to the monster if it gets hit by a bullet or the player jumps on it, etc.
I was wondering if there's any way to, perhaps, flag every unique monster as an enemy, so instead of copying the rules for each one of them I could simply make a set of rules applying to everything that's flagged as "enemy".
So instead of:
"Bullet on collision with monster1 -> substract playerlevel from hp"
it would be:
"Bullet on collision with thing flagged as enemy -> substract playerlevel from this certain thing's hp"
And if not that, any way to make it simpler would be great. Thank you in advance!</font>