how to make an options/settings menu and make this a toggle.

idoistuffidoistuff Member Posts: 197
edited November -1 in Working with GS (Mac)
so I want to create a settings menu (I already have the button for it on my main menu) I also want 3 toggles.

SFX ON/OFF
MUSIC ON/OFF

and PARTICLES ON/OFF

(I have particles attached to my player actor)

how would I go about doing this?

thanks.

Comments

  • SlickZeroSlickZero Houston, TexasMember, Sous Chef Posts: 2,870
    This can be done with the new pause system, since pause is just another scene. You just create a new scene with all of those options you want in that scene, and you access it with the pause behavior. Just tell pause to go to that new scene. And when you're done selecting options and such, It automatically goes back to the scene you were in when you accessed the menu.
  • idoistuffidoistuff Member Posts: 197
    okay, good to know thanks :D

    but now on to the next question.. how do I achieve this? I don't know how to make toggles.
  • SlickZeroSlickZero Houston, TexasMember, Sous Chef Posts: 2,870
    It's just a simple behavior. Make text that says "menu" somewhere on the screen, and you put a invisible actor over the text, and on that actor add a rule, and have it say, <<When actor receives event -"touch" -is pressed>>then you add the pause game behavior, and it will ask you what scene you want to go to. Point it to the scene where you set up the options, and that's it. You use the same pause game behavior to go back to where you were when you accessed the options menu. (Sorry, I said it was automatic, but you have to tell it where to go)

    Edit - Oh duh, "toggles." I'm an idiot...
  • JohnPapiomitisJohnPapiomitis Member Posts: 6,256
    qs is refering to his question about music on off buttons. What he showed is the modulo example to toggle attribute, which is what he will need to do.
  • idoistuffidoistuff Member Posts: 197
    thanks! it worked :)
Sign In or Register to comment.