I want to have a weapon in the game which will destroy all enemies on screen at once.
For each enemy I have a DeathEnemyX() function, like DeathBase1(), DeathBase2(), etc., each of which places the explosions in the correct spots and such.
In order to achieve that I decided to create an actor which would be the size of the window, 640x480, not drawn but accepting events. I made sure that each enemy has a Collision event with that actor, in which I called the DeathEnemyX() function.
However, for some reason, when I press the button and the "bomb" goes off, only one enemy is destroyed. And I can destroy all of them by pressing the fire button several times.
What am I doing wrong here?
Is there a better way?