What is the Best Way to Destroy Multiple Actors When Something is Selected or create a "popup"
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
- 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
-
tatiang Posts: 11,949
See the video here: http://forums.gamesalad.com/discussion/43444/-how-to-make-a-slide-in-level-menu-gamesalad-tutorial-New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
Answers
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.