I'm developing an android game, in which I wanted to add sound off/on effect and I also added sound button to it.
Events defined as
on touch button & sound variable = 0 -> set button animation to mute
-> set sound variable to 1
on touch button & sound variable = 1 -> set button animation to unmute
-> set sound variable to 0
Now, when I touch the sound button, nothing is happening. The button is not changing when I touch it. I guess, both the events are executing at a time.
Please help me solve this problem.