_current_state = "none"; _text_color = 16777215; _bg = scr_dark_marker(-100, -10, spr_pixel_white); _bg.image_xscale = 999; _bg.image_yscale = 999; _bg.depth = 100; _bg.image_blend = c_black; _bg.visible = 1; _bg.image_alpha = 0; _bg_red = scr_dark_marker(-100, -10, spr_pixel_white); _bg_red.image_xscale = 999; _bg_red.image_yscale = 999; _bg_red.depth = _bg.depth - 10; _bg_red.image_blend = c_red; _bg_red.visible = 1; _bg_red.image_alpha = 0; _fountain = scr_dark_marker(0, 0, spr_dw_fountain_tall); _fountain.depth = _bg.depth - 10; with (_fountain) { image_speed = 0.2; visible = 0; } _silo_asgore = instance_create(238, 638, obj_marker_fogblend); _silo_asgore.depth = _fountain.depth - 10; with (_silo_asgore) { color = c_yellow; sprite_index = spr_asgored; image_speed = 0; image_alpha = 0; image_xscale = 2; image_yscale = 2; } _silo_asgore_red = instance_create(_silo_asgore.x, _silo_asgore.y, obj_marker_fogblend); _silo_asgore_red.depth = _silo_asgore.depth - 10; with (_silo_asgore_red) { blendmode = 0; color = c_red; sprite_index = spr_asgored; image_speed = 0; image_alpha = 0; image_xscale = 2; image_yscale = 2; } _silo_kris = instance_create(100, 500, obj_marker_fogblend); _silo_kris.depth = _fountain.depth - 10; with (_silo_kris) { color = c_aqua; sprite_index = spr_flashback_little_01; image_speed = 0; image_alpha = 0; image_xscale = 2; image_yscale = 2; } _silo_asriel = instance_create(100, 500, obj_marker_fogblend); _silo_asriel.depth = _fountain.depth - 10; with (_silo_asriel) { color = c_green; sprite_index = spr_flashback_little_02; image_speed = 0; image_alpha = 0; image_xscale = 2; image_yscale = 2; } _silo_toriel = instance_create(100, 500, obj_marker_fogblend); _silo_toriel.depth = _fountain.depth - 10; with (_silo_toriel) { color = #7B7BDD; sprite_index = spr_toriel_d; image_speed = 0; blend_mode = 0; image_alpha = 0; image_xscale = 2; image_yscale = 2; } _papers = instance_create(0, 0, obj_ch5_DW30_papers); _convo_index = 0; _convo_text = []; _convo_text[0] = [stringsetloc("* Kris.", "obj_ch5_DW30_flashback_slash_Create_0_gml_97_0"), stringsetloc("* ..^1. ever since that horrible day...", "obj_ch5_DW30_flashback_slash_Create_0_gml_98_0"), stringsetloc("* I've..^1. only blamed myself for what happened.", "obj_ch5_DW30_flashback_slash_Create_0_gml_99_0")]; _convo_text[1] = [stringsetloc("* All I ever wanted", "obj_ch5_DW30_flashback_slash_Create_0_gml_102_0"), stringsetloc("* Was to prove it wasn't my fault.", "obj_ch5_DW30_flashback_slash_Create_0_gml_103_0")]; _convo_text[2] = [stringsetloc("* To make sure that it would never happen again.", "obj_ch5_DW30_flashback_slash_Create_0_gml_106_0"), stringsetloc("* That it was all because of...", "obj_ch5_DW30_flashback_slash_Create_0_gml_107_0")]; _convo_text[3] = [stringsetloc("* This.", "obj_ch5_DW30_flashback_slash_Create_0_gml_110_0"), stringsetloc("* The \"Dark World.\"", "obj_ch5_DW30_flashback_slash_Create_0_gml_111_0")]; _convo_text[4] = [stringsetloc("* ..^1. but now that I'm finally here...", "obj_ch5_DW30_flashback_slash_Create_0_gml_114_0"), stringsetloc("* It makes me realize", "obj_ch5_DW30_flashback_slash_Create_0_gml_115_0"), stringsetloc("* How pointless that all was.", "obj_ch5_DW30_flashback_slash_Create_0_gml_116_0")]; _convo_text[5] = [stringsetloc("* None of you ever blamed me.", "obj_ch5_DW30_flashback_slash_Create_0_gml_119_0")]; _convo_text[6] = [stringsetloc("* None of you ever said it was my fault.", "obj_ch5_DW30_flashback_slash_Create_0_gml_122_0")]; _convo_text[7] = [stringsetloc("* Even so..^1. seeing the aftermath of my failure...", "obj_ch5_DW30_flashback_slash_Create_0_gml_125_0")]; _convo_text[8] = [stringsetloc("* Made my self-hatred consume me.", "obj_ch5_DW30_flashback_slash_Create_0_gml_128_0")]; _convo_text[9] = [stringsetloc("* One..^1. that ultimately drove your mother away.", "obj_ch5_DW30_flashback_slash_Create_0_gml_131_0")]; _convo_text[10] = [stringsetloc("* I thought if I could just prove it..^1. prove I was right.", "obj_ch5_DW30_flashback_slash_Create_0_gml_134_0"), stringsetloc("* It would fix everything.", "obj_ch5_DW30_flashback_slash_Create_0_gml_135_0")]; _convo_text[11] = [stringsetloc("* But even when I finally found that \"proof\" I wanted...", "obj_ch5_DW30_flashback_slash_Create_0_gml_138_0")]; _convo_text[12] = [stringsetloc("* ..^1. I still failed to protect you.", "obj_ch5_DW30_flashback_slash_Create_0_gml_141_0")]; bg_fade_in = function() { with (_bg) scr_lerpvar("image_alpha", 0, 1, 60); }; bg_stab = function() { snd_play_x(snd_ominous_stab_harsh_2, 0.5, 1); _bg_red.image_alpha = 1; _text_color = 0; }; bg_stab_fade = function() { with (_bg_red) scr_lerpvar("image_alpha", 1, 0, 90); _text_color = 16777215; }; show_fountain = function() { snd_play(snd_fountain_make_mini); with (_fountain) { x = 280; y = cameray() - 100; visible = 1; } }; fountain_fade_out = function() { with (_fountain) scr_lerpvar("image_alpha", 1, 0, 30); }; fade_in_silo = function(arg0) { var fade_speed = 30; var target = -4; switch (arg0) { case "kris": target = _silo_kris; target.x = _silo_asgore.x - 50; target.y = 706; break; case "asriel": target = _silo_asriel; target.x = _silo_asgore.x - 100; target.y = _silo_asgore.y + 48; break; case "toriel": target = _silo_toriel; target.x = _silo_asgore.x + 100; target.y = _silo_asgore.y + 18; break; case "asgore_red": target = _silo_asgore_red; target.x = (camerax() + (view_wport[0] / 2)) - 42; target.y = (cameray() + (view_hport[0] / 2)) - 80; fade_speed = 60; break; default: target = _silo_asgore; target.x = (camerax() + (view_wport[0] / 2)) - 42; target.y = (cameray() + (view_hport[0] / 2)) - 80; break; } with (target) scr_lerp_var_instance(id, "image_alpha", 0, 1, fade_speed); }; fade_out_silo = function(arg0) { var fade_speed = 60; var target = -4; switch (arg0) { case "kris": target = _silo_kris; break; case "asriel": target = _silo_asriel; break; case "toriel": target = _silo_toriel; break; case "asgore_red": target = _silo_asgore_red; _silo_asgore.visible = 0; break; default: target = _silo_asgore; break; } with (target) scr_lerp_var_instance(id, "image_alpha", 1, 0, fade_speed); if (arg0 == "asgore_red") { scr_script_delayed(scr_lerp_var_instance, fade_speed, _bg, "image_alpha", 1, 0, 60); scr_var_delay("_current_state", "finished", fade_speed + 60 + 1); } }; show_papers = function() { _papers.show(); }; show_lines = function() { _papers.show_lines(); }; grow_papers = function() { _papers.grow_papers(); }; fade_out_papers = function() { _papers.fade_papers(); }; dequeue_text = function() { _current_state = "text"; global.typer = 89; global.fc = 0; var lines = _convo_text[_convo_index]; for (var i = 0; i < array_length(lines); i++) { global.msg[i] = lines[i]; if (i < (array_length(lines) - 1)) global.msg[i] += "/"; else global.msg[i] += "/%"; } var _writer = instance_create(camerax() + 70, cameray() + 320, obj_writer); _writer.mycolor = _text_color; _convo_index++; }; clean_up = function() { with (_papers) clean_up(); with (_bg) instance_destroy(); with (_bg_red) instance_destroy(); with (_fountain) instance_destroy(); with (_silo_asgore) instance_destroy(); with (_silo_asgore_red) instance_destroy(); with (_silo_kris) instance_destroy(); with (_silo_asriel) instance_destroy(); with (_silo_toriel) instance_destroy(); instance_destroy(); };