Hello, so what am i trying to do is kind of a double click. When the user press the button for the first time it stops the music and when it press it again it starts it. The problem with my code is that after i add the second click (to turn the music back to on) code, i can not press the button!
Develop games in your browser. Powerful, performant & highly capable.
Please upload the capx. In the meantime.. use one touch event, and an else to check the variable is 0 or 1.
Use an instance variable with music button.
On Touched Music Button
music = 0
see capx example
You could do it like this
Thank you all, DUTOIT what you have done it is exactly what i needed, thank you.