How to fix the music box

Guide by Pvic and Aleks

So here's the way to fix that loading screen of GMate

that loading screen can last for hours, and even not load musics.

basically

in the create code I set the music variable with value "0"

like this

https://cdn.discordapp.com/attachments/389897599898877952/397607712273465346/unknown.png

and in the room start code:

   case ROOM:{
 if song_name == 0
 {song_name=caster_load(working_directory+"\gamedata\bgm\song_name.ogg");}
 caster_handle = song_name; caster_loop(caster_handle,caster_volume,caster_pitch); break;};

you can also set that as a script, just remove the "case"/switch statement and:

make the a script like this:

//scr_loop_bgm(room,song_var_name,""song_filename")
if(room = argument0){
   if(argument1 == 1){
      song_name  = caster_load(working_directory+"\gamedata\bgm\"+string(argument2)+".ogg");
   }
 caster_handle = argument1;
 caster_loop(caster_handle, caster_volume, caster_pitch)
 break;
}

Ex: https://i.imgur.com/IQpERsp.png .