sIBeamFX 0 -1 0 0 <undefined> <undefined> 1 603 7 0 0 -1 2 self 0 0 1 playerx = 350; playertgtx = -50; if (oControl.mod_fusion == 1) playertgtx = 5; playery = 18; glow1x = -33; glow1y = 28; glow2x = 29; glow2y = 105; glow3x = 17; glow3y = 209; glow4x = -50; glow4y = 18; glow_alpha = 0; bgx = 0; bgtgtx = -80; bgy = 0; tx1x = 250; tx1y = 70; tx2x = 307; tx2y = 220; tx1_alpha = 0; tx2_alpha = 0; i = 0; ralpha = 0; fadeout = 0; walpha = 0; text1 = get_text("ScoreScreen", "ClearTime"); text1a = steps_to_time2(global.gametime); text2 = get_text("ScoreScreen", "ItemCollection"); text2a = string(round(global.itemstaken / 88 * 100)) + "%"; text3 = get_text("ScoreScreen", "SeeYouNextMission"); text4 = get_text("ScoreScreen", "TheLastMonster"); text5 = get_text("ScoreScreen", "ToBeContinued"); statetime = 0; state = 0; if (global.difficulty == 0) { ending = 276; unlock_gallery(0); } else { if (global.gametime >= 864000) { ending = 276; unlock_gallery(0); } if (global.gametime >= 432000 && global.gametime < 864000) { ending = 277; unlock_gallery(1); unlock_gallery(0); } if (global.gametime < 432000) { ending = 278; unlock_gallery(2); unlock_gallery(1); unlock_gallery(0); } } if (global.difficulty == 0) unlock_set(0); if (global.difficulty == 1) unlock_set(1); if (global.difficulty > 1) unlock_set(2); widespace = oControl.widescreen*53; //transitiontime = 1000; 1 603 7 0 0 -1 2 self 0 0 1 var j; if (state == 0) { if (playerx != playertgtx) playerx = lerp(playerx, playertgtx, 0.02); if (bgx != bgtgtx) bgx = lerp(bgx, bgtgtx, 0.02); glow1x = playerx + 17; glow2x = playerx + 79; glow3x = playerx + 67; glow4x = playerx; if (statetime > 200) { if (tx1_alpha < 1) tx1_alpha += 0.05; } if (statetime > 300) { if (tx2_alpha < 1) tx2_alpha += 0.05; } if (statetime > 120 && statetime < 1000 && (oControl.kMenu1 || oControl.kMenu2 || oControl.kStart)) { } if (statetime > 1000) { if (walpha < 1) { walpha += 0.01; } else { state = 1; statetime = 0; tx1_alpha = 0; } } i += 0.02; if (i > 99999999) i = 0; j = 0.02 + abs(sin(i)); if (j > 1) j = 1; glow_alpha = j; } // if (state == 0) if (state == 1) { if (statetime > 300 && statetime < 1000 && (oControl.kMenu1 || oControl.kMenu2 || oControl.kStart)) statetime = 1000; if (statetime > 180) { if (tx1_alpha < 1) tx1_alpha += 0.05; } if (statetime > 1000) { if (fadeout == 0) fadeout = 1; } if (statetime == 1300) { state = 2; statetime = 0; tx1_alpha = 0; tx2_alpha = 0; ralpha = 0; fadeout = 0; } if (fadeout) { if (ralpha < 1) ralpha += 0.01; } if (walpha > 0) walpha -= 0.01; } if (state == 2) { if (statetime > 0) { if (tx1_alpha < 1) tx1_alpha += 0.05; } if (statetime > 350) { if (tx2_alpha < 1) tx2_alpha += 0.05; } if (statetime == 60) sfx_play(sndTLM); if (statetime == 600) fadeout = 1; if (statetime == 900) event_user(0); if (fadeout) { if (ralpha < 1) ralpha += 0.01; } } statetime += 1; 1 603 7 0 0 -1 2 self 0 0 1 //room_change(titleroom, 1); //room_goto(titleroom); if(round((global.itemstaken / 88) * 100) < 100) { room_change(titleroom, 1); //room_goto(titleroom); } else { room_goto(rm_secretEnding); } 1 603 7 0 0 -1 2 self 0 0 1 if (state == 0) { draw_background(bgScoreScreenBG, bgx - (oControl.widescreen_space/2), bgy); if (oControl.mod_fusion == 1) { draw_background(bgScoreScreenPlayer_fusion, playerx, playery); } else draw_background(bgScoreScreenPlayer, playerx, playery); draw_set_blend_mode(bm_add); if (oControl.mod_fusion == 1) { draw_background_ext(bgScoreScreenPlayerGlow4, glow4x, glow4y, 1, 1, 0, -1, glow_alpha); } else { draw_background_ext(bgScoreScreenPlayerGlow1, glow1x, glow1y, 1, 1, 0, -1, glow_alpha); draw_background_ext(bgScoreScreenPlayerGlow2, glow2x, glow2y, 1, 1, 0, -1, glow_alpha); draw_background_ext(bgScoreScreenPlayerGlow3, glow3x, glow3y, 1, 1, 0, -1, glow_alpha); } draw_set_blend_mode(bm_normal); draw_set_color(c_white); draw_set_font(fontGUI2); draw_set_halign(fa_center); draw_set_alpha(tx1_alpha); draw_text(tx1x, tx1y, text1); draw_text(tx1x, tx1y + 12, text1a); draw_set_alpha(tx2_alpha); draw_text(tx1x, tx1y + 40, text2); draw_text(tx1x, tx1y + 52, text2a); draw_set_halign(fa_left); } if (state == 1) { draw_background(ending, -53, 0); // -53 is a widescreen image correction draw_set_font(fontGUI2); draw_set_halign(fa_right); draw_set_color(c_black); draw_set_alpha(tx1_alpha); draw_text(tx2x - 1 + widespace, tx2y - 1, text3); draw_text(tx2x - 1 + widespace, tx2y + 1, text3); draw_text(tx2x + 1 + widespace, tx2y - 1, text3); draw_text(tx2x + 1 + widespace, tx2y + 1, text3); draw_text(tx2x - 1 + widespace, tx2y, text3); draw_text(tx2x + 1 + widespace, tx2y, text3); draw_set_color(c_white); draw_set_alpha(tx1_alpha); draw_text(tx2x + widespace, tx2y, text3); draw_set_halign(fa_left); } if (state == 2) { draw_set_font(fontGUI2); draw_set_halign(fa_center); draw_set_color(c_white); draw_set_alpha(tx1_alpha); draw_text(160, 100, text4); draw_set_halign(fa_right); draw_set_font(fontMenuSmall2); draw_set_alpha(tx2_alpha); draw_text(307 + widespace, 220, text5); draw_set_halign(fa_left); } if (fadeout) { draw_set_alpha(ralpha); draw_set_color(c_black); draw_rectangle(-53, 0, 1000, 1000, false); draw_set_alpha(1); } if (walpha > 0) { draw_set_alpha(walpha); draw_set_color(c_white); draw_rectangle(-53, 0, 1000, 1000, false); draw_set_alpha(1); } 0 0 0 0.5 0.100000001490116 0 0.100000001490116 0.100000001490116 0.200000002980232 -1 -1