To clarify the title of the thread:
I have a family called 'Enemies' which contains all of the sprites for monsters in the game. Each monster sprite has an instance variable called 'Onhit' that when changed to '1' causes an animation to happen among a few other things such as spawning a damage number sprite.
I want to slim my code down (I made code for a bullet colliding with every single monster sprite which lead to a lot of events) and make it so when a bullet overlaps anything from the 'Enemies' family it changes the instance variable of the specific monster that was hit ('Onhit' to '1').
If I do something like:
'Bullet on collision with (family)Enemies'
Any action that occurs as a result of that will affect every monster sprite that is within the 'Enemies' family.
Thank you.