Sound/Music turn off/on
evert
Member Posts: 266
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?
New game!: [Snake Rage]https://itunes.apple.com/us/app/snake-rage/id1463859909
Comments
Have you tried using the Pause / Play / Resume behaviours?
GSLearn.com | Templates | Free Demos | Udemy Course
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.
New game!: [Snake Rage]https://itunes.apple.com/us/app/snake-rage/id1463859909
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.
GSLearn.com | Templates | Free Demos | Udemy Course
I have something similar.
But it does not stop the sound. Only the music.
New game!: [Snake Rage]https://itunes.apple.com/us/app/snake-rage/id1463859909
You will need to post image of where your sound is being played. And what rule or expressions are being used for it.
GSLearn.com | Templates | Free Demos | Udemy Course
New game!: [Snake Rage]https://itunes.apple.com/us/app/snake-rage/id1463859909
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.
GSLearn.com | Templates | Free Demos | Udemy Course