//Check for required custom font files in media folder
fileok=GetFileExists("music.mp3")
If fileok<>1
Repeat
Print ("music.mp3 needs to be in your media folder")
Sync()
Until Timer()>5
EndIF
If fileok=1
music = LoadMusic("music.mp3")
PlayMusic(1)
Repeat
If GetMusicPlaying()
Print ("Music Playing")
EndIf
Sync()
Until Timer()>20
EndIf
End
Help make AGK better by submitting an example for this command! (All examples are subject to approval)
//Check for required custom font files in media folder fileok=GetFileExists("music.mp3") If fileok<>1 Repeat Print ("music.mp3 needs to be in your media folder") Sync() Until Timer()>5 EndIF If fileok=1 music = LoadMusic("music.mp3") PlayMusic(1) Repeat If GetMusicPlaying() Print ("Music Playing") EndIf Sync() Until Timer()>20 EndIf End