Different music for different rooms[SOLVED]

K

Karrlem

Guest
Hello, I was wondering how do you put two separate mp3 files on two different rooms.
 
D

Dave Martinez

Guest
Code:
if room = title_screen
{
audio_play_sound(title_music, priority, loop);
}
if room = level_one
{
audio_play_sound(levelone_music, priority, loop);
}
 
K

Karrlem

Guest
Code:
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?
 
K

Karrlem

Guest
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.
To Stop the music would I destroy or deactivate the object?
 
Top