Button to destroy all enemy's on scene

JaxterJaxter Member, PRO Posts: 398
edited November -1 in Working with GS (Mac)
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

  • CobraCobra Member Posts: 160
    Removed the poll -- feel free to repost in a relevant topic, thanks. :)

    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.
  • JaxterJaxter Member, PRO Posts: 398
    Supper fast answer tnx ;)
  • JaxterJaxter Member, PRO Posts: 398
    It helped but another poblem, all point bubbles are now not destoying when touch actor, and when i presing BLOW button to destroy enemy's.. 2nd time .. game is stucked
  • JaxterJaxter Member, PRO Posts: 398
    http://raganasligzda.lv/citi/button.png that i have on button..

    now game is crashing when button is on stage
  • JaxterJaxter Member, PRO Posts: 398
    looks game salada had some error i restarted GS and now all is ok.. now i wannt to try figure out how to let press this button once in stage... maybe i must remove relase atribute from button..
Sign In or Register to comment.