How do you create a menu under another menu?

My problem: I have an actor that I call "Setting button" I want to be able to click it so that a my other actor"Setting open" shows up and I can click within that actor"Setting open" and then be able to click the "Setting button" again so that the menu disappears.

i.e. click setting>window pops up with two options click "Sound" or "information" or click setting button again to make it go away, how can I accomplish this?

Answers

  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949
    The easiest way is with a Pause Game (and Unpause Game) behavior. Make a separate scene with the pause scene (settings) actors and it will be overlaid on top of the existing scene.

    The harder way is to move any images and buttons from off-screen to where you need them when the settings button is clicked and then move everything off-screen again when settings is clicked again.

    The latter way is the better way performance-wise.

    New to GameSalad? (FAQs)   |   Tutorials   |   Templates   |   Greenleaf Games   |   Educator & Certified GameSalad User

  • ElfizmElfizm Member Posts: 489
    The first way @tatiang mentioned is the easiest, and if your not concerned about load times and loading wheels go with that.

    But if your like me and care about giving your user the quickest transaction then maybe make your scene bigger and have a whole new section for settings, that way when pressed change change the camera view. It will happen instantly.
    Just another idea to add to your list of many options that can be done with the great amazing game engine GameSalad :)

    Have a good day
Sign In or Register to comment.