What is the Best Way to Destroy Multiple Actors When Something is Selected or create a "popup"

jdgouldjdgould Member, PRO Posts: 114
edited June 2012 in Working with GS (Mac)
I am trying to figure out the best way to accomplish the following functionality:
- When you touch the Hat icon on Scene 1, I want a "popup" window (i.e. actor or scene) to pop up with 12 hat options (3X4 icons). Once a hat is selected from the popup, I want that hat to spawn on my original scene and destroy the popup (3X4).

Thanks in advance for your help.

Jeff

Best Answers

Answers

  • jdgouldjdgould Member, PRO Posts: 114
    Thanks Blorsch, I will learn more about interpolate and see if I can't that to work.
  • domeniusdomenius Member Posts: 108
    You will also need a global attribute to tell each actor they need to be destroyed. Basically have a boolean, say destroyHatMenu, that when true causes each actor to run a destroy routine.

    If you need those hat actors to come back, then have a dummy actor somewhere that says when destoryHatMenu is true, run a 0.05 second timer to toggle it to false. That way you can reuse this attribute later and the icons won't destroy themselves instantly on the behalf of a global attribute.
Sign In or Register to comment.