G
Gresse
Guest
Hey there,
This is the code in my music object (create event)
The Problem is that there is no music in my first room (rm_menu_main), but when i click and go to the next room (rm_map_menu) the music starts and when I go back through a bxk button the music continus)
What should I do if I want the music start in the first room??
Thank You and Sorry for my bad english
This is the code in my music object (create event)
Code:
/// @description
//load audio grops
audio_group_load(Music);
audio_group_load(sound_effects);
//play some music
if room == rm_map1 {
if audio_is_playing(sou_out_for_blood) {
audio_sound_gain(sou_out_for_blood, 0, 1000);
}
audio_play_sound(sou_playlist, 100, true);
audio_sound_gain(sou_playlist, 0,0);
audio_sound_gain(sou_playlist, 1, 2000);
} else {
if audio_is_playing(sou_playlist) {
audio_sound_gain(sou_playlist, 0, 1000);
}
if not audio_is_playing(sou_out_for_blood) {
audio_play_sound(sou_out_for_blood, 100, true);
audio_sound_gain(sou_out_for_blood, 0,0);
audio_sound_gain(sou_out_for_blood, 1, 1000);
}
}
What should I do if I want the music start in the first room??
Thank You and Sorry for my bad english