I am making a small game to sort of test the waters with Game Maker and I'm trying to have an mp3 play when the splash screen loads - and persist until the game either ends or the game starts (meaning splash, menu, options all play the background mp3).
I've created an object that isn't visible, but is present in my rooms (Menu, Splash, Options) that reads:
if (!sound_isplaying(BGM_Menu))
{
sound_loop(BGM_Menu);
}
Which will, to my understanding, go through and check for whether or not the background music is playing, if not, start it. Well no music plays on any of the menu screens.
I figured I'd try something simple, to even just get my background music to play:
play_sound(BGM_Menu);
Nothing.
So then I decided I'd go to drag and drop since sound_loop and sound_play don't seem to want to work for me. What happens is, the BGM_Menu will start to play on my splash screen, then as soon as as it transfers over to my Menu room (from Splash) it starts to loop the same song over the one that's still currently playing from the splash screen.
I've tried to solve this issue for about an hour and figured I'd come here to see if anyone else has experienced this or knows a fix.
Thanks!