sMslSpark 0 -1 0 0 <undefined> <undefined> 1 603 7 0 0 -1 2 self 0 0 1 opset = 0; ealpha = 0; fadeout = 0; active = 0; size = 0; if(instance_exists(oNotification)) oNotification.visible = false //added Mute_Loops(); if (global.itemtype == 0) { alarm[0] = 360; if(oMusicV2.bossbgm == sndJump) { mus_pause(oMusicV2.currentbgm); } else { mus_pause(oMusicV2.bossbgm); } mus_play_once(musItemGet); } else { alarm[0] = 60; sfx_play(sndMessage); } if (oControl.widescreen) { surf = oControl.widescreen_surface; surfoff = 53; } else { surf = oControl.screen_surface; surfoff = 0; } 1 603 7 0 0 -1 2 self 0 0 1 event_user(0); 1 603 7 0 0 -1 2 self 0 0 1 if (active && global.itemtype == 0 && (oControl.kStart && oControl.kStartPushedSteps == 0 || oControl.kJump && oControl.kJumpPushedSteps == 0 || oControl.kFire && oControl.kFirePushedSteps == 0)) event_user(0); if (ealpha < 1 && fadeout == 0) ealpha += 0.05; if (ealpha > 0 && fadeout) ealpha -= 0.05; if (ealpha >= 1 && fadeout == 0) active = 1; if (ealpha <= 0 && fadeout) { global.ingame = 1; global.transitiontype = 3; room_goto(global.currentroom); } size = ealpha * 24; 1 603 7 0 0 -1 2 self 0 0 1 fadeout = 1; active = 0; if (global.itemtype == 0) { if (sfx_isplaying(musItemGet)) audio_sound_gain(musItemGet, 0, 250);//mus_stop(musItemGet); oMusicV2.alarm[11] = 60; if(oMusicV2.bossbgm == sndJump) { mus_resume(oMusicV2.currentbgm); mus_current_fadein(); } else { mus_resume(oMusicV2.bossbgm); mus_boss_fadein(); } } 1 603 7 0 0 -1 2 self 0 0 1 if(instance_exists(oNotification)) oNotification.visible = true; //added Unmute_Loops(); 1 603 7 0 0 -1 2 self 0 0 1 if (surface_exists(surf)) { draw_surface(surf, 0 - surfoff, 0); if (global.itemtype == 0) { draw_surface_ext(surf, 1 - surfoff, 0, 1, 1, 0, -1, 0.5 * ealpha); draw_surface_ext(surf, -1 - surfoff, 0, 1, 1, 0, -1, 0.5 * ealpha); draw_surface_ext(surf, 2 - surfoff, 0, 1, 1, 0, -1, 0.2 * ealpha); draw_surface_ext(surf, -2 - surfoff, 0, 1, 1, 0, -1, 0.2 * ealpha); } } if (global.itemtype == 0) { draw_set_alpha(0.8); draw_set_color(c_black); draw_rectangle(0 - surfoff, 120 - size, room_width + surfoff, 120 + size, false); draw_set_halign(fa_center); draw_set_valign(fa_middle); draw_set_font(fontGUI); draw_cool_text(160, 112 + oControl.GUIOffset, global.itmtext1, c_white, c_aqua, c_navy, ealpha); draw_set_valign(fa_top); if (global.btn1_name == "" && global.btn2_name == "") { draw_set_font(fontMenuSmall2); draw_set_alpha(ealpha); draw_text(160, 121, global.itmtext2); } if (global.btn1_name != "" && global.btn2_name == "") draw_txt_1button(160, 121, global.itmtext2, 0, global.btn1_name, ealpha); if (global.btn1_name != "" && global.btn2_name != "") draw_txt_2buttons(160, 121, global.itmtext2, 0, global.btn1_name, global.btn2_name, ealpha); draw_set_halign(fa_left); draw_set_alpha(1); } 0 0 0 0.5 0.100000001490116 0 0.100000001490116 0.100000001490116 0.200000002980232 -1 -1