Hello again folks.
I've had a good run of coding a scrolling beat 'em up recently. Each enemy is at present made up of a collision box to test their movement and hits, sprites to show animations, and shadows for their floor positions, I create these pieces at the start of the frame for each enemy, run a loop to assign them IDs, then another to sync them all together - so far so good, I've been able to successfully scope these pieces individually when attacking and knocking down each enemy using this method.
Please login to see this attachment.
My issue however is that so far, this only works when attacking one enemy at a time. I've been using the 'only one action when event loops' feature on striking an enemy, as this stops their values going over where I want them and the sound fx going crazy, the problem is that when hitting several enemies at once, such as with this explosion, only one of them reacts to it, and if I remove the 'one action' limiter only one gets hit and falls correctly, but the other goes crazy and locks up?
What would be recommended to address such an event, where more than one enemy is struck at a time, and how to make each of them react appropriately?