I was working on game where there is a sound toggle button!
If user touch sprite button and global variable is 0 the it should change frame to off and variable to 1.
here is the image see attachment
Is there any other possible way to make a toggle button. I know it's pretty basic but don't know what went wrong.