K
Karrlem
Guest
Hello, I was wondering how do you put two separate mp3 files on two different rooms.
if room = title_screen
{
audio_play_sound(title_music, priority, loop);
}
if room = level_one
{
audio_play_sound(levelone_music, priority, loop);
}
This would go in a object thats in both rooms step event?Code:if room = title_screen { audio_play_sound(title_music, priority, loop); } if room = level_one { audio_play_sound(levelone_music, priority, loop); }
No, if you put that in a Step Event it will start playing the music every step.This would go in a object thats in both rooms step event?
To Stop the music would I destroy or deactivate the object?No, if you put that in a Step Event it will start playing the music every step.
You could use a persistent object, but the easiest way it to put it in the Room Start event.
Don't forget to stop any music that is already playing as well.