i've tried to create a sprite with two frames (set & unset). I gave this sprite a Boolean OnSound and added a global variable Sound (int. 1). The on/off function works, but something is strange with the sounds. It doesn't play normally. It sounds like every tick the sounds startet from new.
I don't know what to do.. Maybe someone can help me. Here you find my sample project. Feel free to post your improvments and tipps!