I've had a bit of a search but can't easily put into words what I am looking for so thought I would ask.
I'm making a platform shooter. Basic stuff, shoot enemies, enemies take damage and die. Simple enough to code, I have an instance variable on my enemy sprites for health, if the player bullet hits the enemy, it knocks 10 off the health instance variable, if it goes zero or below, destroy the enemy. I have no problems making all that work, but I plan to have a variety of enemy sprites with different behaviors, and I am on the free version so events are at a premium. is there any way to do the damage actions to whatever enemy the player hits?