Not tested, but this should be better...
AddVirtualButton(12,700,10,70)
if GetVirtualButtonReleased(12) = 1
if sound = 1
sound = 0
PauseMusicOGG( 1)
else
sound = 1
ResumeMusicOGG(1)
endif
endif
You only need to pause/resume when the button is released. You were doing it every cycle.
Your AddVirtualButton() should also be outside of the main loop, looks like you are creating every cycle.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Quidquid latine dictum sit, altum sonatur
TutCity is being rebuilt