Button to destroy all enemy's on scene
Jaxter
Member, PRO Posts: 398
I wanna build Button to destroy all enemy's on scene ( emergency button to clear all enemy's on screen once ore 3 times in stage. What is solution?
Comments
Try this solution:
1. Create a boolean game attribute "DestroyAll."
2. On your button actor: when the button is pressed, change game.DestroyAll to true, and when released change it to false.
3. On your enemy actor(s): when game.DestroyAll is true, destroy this actor.
now game is crashing when button is on stage