Sound/Music turn off/on
Hey,
So i have a working turn off music button.
I put a game.music volume to 0 in it and it works.
But when i put the game.sound volume in it.
The sounds in my game keep playing, as for the music it stops and plays whenever i push my sound button.
Any suggestions?
Comments
Have you tried using the Pause / Play / Resume behaviours?
Well the problem is the sound files, music files stop when i press my button.
It's the sounds with in my game that won't stop.
I would just have a game attribute called SOUND. Then have the sound button toggle that between 0 and 1 (true or false etc).
And then where ever you have sound being played, put it in a rule to check if the SOUND attribute is = 1 or true.
Hope that helps.
I have something similar.

But it does not stop the sound. Only the music.
You will need to post image of where your sound is being played. And what rule or expressions are being used for it.
Your sound behaviours are just placed. There is no rule to decided if they should play or not.
You need to put them in rules (as mentioned) (just click the sound behaviour and add a rule). The rule condition would be if the Sound attribute is equal to 0 or 1. Depending which value equals no sound.