best way to mute all sound ?

app-etiteapp-etite Member Posts: 139
edited November -1 in Working with GS (Mac)
Hi guys

I have a mute button on the main menu. Do I have to say when this button is pressed change attribute say..Game.mute=1 and then have every single sound and music in my game under a rule when game.mute is 0 then play sound or music?

is that right??

Thanks

Comments

  • ozboybrianozboybrian PRO Posts: 2,102
    I think it differs from the ammout of sound tracks you have playing.

    There are two options if im right.

    One being Change att > Volume to 0.

    Actually that's it lol!

    When "Button" is TOUCHED Change att > devices > sound > 0
  • app-etiteapp-etite Member Posts: 139
    ozboybrian!!! you just saved me from wasting ALOT of time.

    thanks for responding just in time :)
  • gyroscopegyroscope I am here.Member, Sous Chef, PRO Posts: 6,598
    Hi app-etite, you might want to consider, with ozboybrian's good suggestion of changing volume to 0: just change the sound volume to 0, and use a Pause Music behavior for the music. That way the music will continue from where it left off, when it's unpaused using a Play Music behavior again, marked as Resume Current Music.

    :-)

    ""You are in a maze of twisty passages, all alike." - Zork        temp domain http://spidergriffin.wix.com/alphaghostapps

  • thelgithelgi Member Posts: 2
    Hi guys,

    I know this is a really old thread, but it already helped me solve half my problem so I thought I'd just bump it rather than create a new post...

    When the user pauses the game I'm working on, they're taken to a pause screen with the option to turn the sound & music on or off. I was able to get the music button to pause / play the music no problem, and this thread helped me to figure out how to mute all sounds. But now I need to be able to unmute the sounds. Any thoughts on how I can achieve a mute/unmute sounds button?

    Thanks in advance!
Sign In or Register to comment.