Hi,
We switched to MP3 for music and WAV for sound effects for HTML5 version now.
We have a problem with "PauseMusic()" not working?
When we do "PauseMusic()" the music pauses for 2 seconds and then continues playing?
Any idea what the issue is?
Thanks in advance...
Jesse
Game is currently closed source, but we can show small code below:
elseif ThisIconWasPressed(2) = TRUE
if (GamePausedStatus = FALSE)
GamePausedStatus = TRUE
GamePaused = 50
SetDelayAllUserInput()
SetSpritePositionByOffset( GamePausedBG, (ScreenWidth/2), (ScreenHeight/2) )
SetSpriteDepth ( Icon[0], 1 )
SetSpriteDepth ( Icon[1], 1 )
SetSpriteDepth ( Icon[4], 1 )
SetSpriteDepth ( Icon[5], 1 )
IconScreenY[1] = 622
SetSpritePositionByOffset( Icon[4], IconScreenX[1], IconScreenY[1] )
if (UseMP3andWAV = FALSE)
PauseMusicOGG(MusicTrack[CurrentlyPlayingMusicIndex])
elseif (UseMP3andWAV = TRUE)
PauseMusic()
endif
elseif (GamePausedStatus = TRUE)
if (GamePaused = -1)
GamePausedStatus = FALSE
GamePaused = 50
SetDelayAllUserInput()
SetSpritePositionByOffset( GamePausedBG, -9999, -9999 )
SetSpriteDepth ( Icon[0], 2 )
SetSpriteDepth ( Icon[1], 2 )
SetSpriteDepth ( Icon[4], 10 )
SetSpriteDepth ( Icon[5], 2 )
IconScreenY[1] = -9999
SetSpritePositionByOffset( Icon[4], IconScreenX[1], IconScreenY[1] )
if (UseMP3andWAV = FALSE)
ResumeMusicOGG(MusicTrack[CurrentlyPlayingMusicIndex])
elseif (UseMP3andWAV = TRUE)
ResumeMusic()
endif
endif
endif