first, Sorry for my English.
I have a layout, 2 event sheet. Main event sheet contains main variable and actions, last sheet linked to Options layout. I will add layouts, which include Main event sheet, with sheet, again.
Then Main event sheet have one global variable named SoundOnNOff, that contain the number 0-sound off or 1-sound on.
the Options layout have a mute button, and if clicked toggle silence and save to 0 or 1 to SoundOnNOff.
it makes on or off animation.
it able to continue if button is visible and clicked,
default animation of MIOptionsSound play, and not silent/toggle/
defaultmute animation of MIOptionsSound play, and silent/toggle/
But it mute button doesn't work
When there is no if(SoundOnNOff== 0) or if(SoundOnNOff== 1) condition, on debug:
First I set the sound off, then switch layout to other layout which is for play the game, and /once debug, no exit/ again switch to back options layout then mutebutton animation is on/default animation/. and then click the mutebutton, defaultmute animation showed and play only fx/sounds effects/, but main music isn't playing.
How can I fix this?