Need help: destroy triggers an event

DoguzDoguz Member Posts: 500
edited November -1 in Working with GS (Mac)
Hello,

I have between 20 and 50 actors on a screen, they are all the same actor. I then have them destroyed as i touch them.

Is there a way to have an actor spawn only after all of those actors are destroyed. e.g. a button to go to next

-Doguz

Comments

  • JohnPapiomitisJohnPapiomitis Member Posts: 6,256
    yeah make a attribute called blocksLeft and set it to however many blocks you have on screen

    In your touch is pressed rule that destroys them, also have a change attribute behavior changing blocksLeft to blocksLeft-1

    Then have a rule when blocksLeft=0 spawn or do whatever you want
  • DoguzDoguz Member Posts: 500
    Excellent, thanks. It works.
  • keweworkshopkeweworkshop Member Posts: 377
    John have you ever thought about offering paid project help at the forum? You are very knowledgeable about the program and are very helpful. You should do it!
Sign In or Register to comment.