best way to mute all sound ?

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
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
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
thanks for responding just in time
:-)
""You are in a maze of twisty passages, all alike." - Zork temp domain http://spidergriffin.wix.com/alphaghostapps
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!