I'm trying to toggle an image when a user clicks on the image. It is meant to change the image and mute the audio that is playing in background and vice versa.
here is the code:
here is the code:
Code:
if (Audio.Play(CHANNEL_BACKGROUND) == true) then Audio.Pause(CHANNEL_BACKGROUND); Image.Load("playpause", "AutoPlay\\Images\\gg57570759.png"); else Image.Load("playpause", "AutoPlay\\Images\\gg57570759 on.png"); Audio.Play(CHANNEL_BACKGROUND); end
Comment