Separating sound and music volumes?
alexwebermagic
Member, PRO Posts: 5
Hey guys,
I'm having an issue which I can't seem to figure out.
Obviously when you add sounds to your game they either fall into the 'Sound' or 'Music' categories.
I want to be able to set buttons so that you can set sound and/or music to be off separate from each other.
So i have a music off button that when pressed changes the device.audio.music to 0 but does not change the audio.sound settings.
However when i press this button it mutes all sounds and music in the game and not JUST the music.
I hope this explains it clearly enough. What am I doing wrong??
Regards
Answers
Hi @alexwebermagic.
I tend to not use the device volume attributes as they don't work well for me. Instead I create my own game level 'real' attributes for MUSICVOL and SFXVOL (ranging from 0 to 1)
Then when I use 'Play Music' or 'Play Sound' behaviours, I set the volume in the expression editor to use MUSICVOL or SFXVOL.
Hope that helps!
Did my project provided in your last thread not help?
http://forums.gamesalad.com/discussion/comment/603785/#Comment_603785
Contact me for custom work - Expert GS developer with 15 years of GS experience - Skype: armelline.support