right now I'm working on the enemy AI for my arcade top-down shooter. I have an enemy object with different behaviour states (handled by an instance variable: ivar_stance = 0,1,2,3). ivar_stance = 0 let the enemy chase you, ivar_stance = 1 let's him shoot you and so on. It's working fine until I spawn multiple enemies. Then every time the enemy is in shooting range (ivar_stance = 2 is active), only one of the spawned enemies is actually shooting at you. The funny thing is, all other events are working fine, just the bullet spawning for the enemy bullet doesn't seem to function.
Here is the event for the bullet spawning:
And here is the event that handles the behaviour states:
Can you help me out on this one? I'm searching a solution for a couple of days now =/