So basically the question says it all. In one of my scenes, I created a variable that if it isn’t equal to 1, the game will have sound. If it is equal to 1, the game won’t. So, my code says:
if soundvariable ~= 1 then
playmusic = audio.loadSound("music.wav")
playchannel = audio.play(playmusic)
end
And I also have a mute button that when you touch it, it makes soundvariable = 1. And then the music stops. But when I go to a different scene and then I come back to this scene, the music starts again. How can I make soundvariable visible in all my scenes? Thanks! [import]uid: 38001 topic_id: 11408 reply_id: 311408[/import]