if (con < 0) exit; if (con == 0) { con = 1; alarm[0] = 1; global.interact = 1; global.facing = 0; } if (con == 2) { con = 3; cutscene_master = scr_cutscene_make(); scr_maincharacters_actors(); fl = actor_count + 1; fl_actor = instance_create(flpos.x, flpos.y, obj_actor); scr_actor_setup(fl, fl_actor, "flowery_jacket"); fl_actor.sprite_index = flpos.sprite_index; fl_actor.flash_timer = 0; fl_actor.visible = false; asg = actor_count + 2; as_actor = instance_create(aspos.x, aspos.y, obj_actor); scr_actor_setup(asg, as_actor, "asgoredw"); as_actor.sprite_index = aspos.sprite_index; as_actor.visible = false; ye = actor_count + 3; ye_actor = instance_create(yepos.x, yepos.y - 400, obj_actor); scr_actor_setup(ye, ye_actor, "yellow"); ye_actor.sprite_index = yepos.sprite_index; ye_actor.flash_timer = 0; ye_actor.flash_timer_pace = 3; c_sel(su); c_setxy(supos.x, supos.y); c_sprite(spr_susie_walk_right_dw_unhappy); c_sel(ra); c_setxy(rapos.x, supos.y); c_sprite(spr_ralsei_surprised_right); c_sel(kr); c_setxy(krpos.x, krpos.y); c_facing("r"); c_pannable(1); c_pan_fancy(320, 0, 1); c_lerp_var_instance(blackall, "image_alpha", 1, 0, 30); c_wait(31); c_msgstay(3); c_speaker("flowery_noface"); c_msgsetloc(0, "\\E0* Then we can all relax and have some nice MilkShakes./", "obj_ch5_DW10_slash_Step_0_gml_62_0"); c_facenext("asgore", "5"); c_msgnextloc("\\E5* Why^1, that sounds.../", "obj_ch5_DW10_slash_Step_0_gml_64_0"); c_facenext("susie", "J"); c_msgnextloc("\\EJ* Hey!^1! Kris's dad!!/%", "obj_ch5_DW10_slash_Step_0_gml_66_0"); c_talk(); c_wait_box(2); c_var_instance(asgore_flowery_hug, "image_index", 2); c_waittalk(); c_sel(asg); c_facing("l"); c_var_instance(asgore_flowery_hug, "image_index", 3); c_speaker("asgore"); c_msgsetloc(0, "\\Ef* H..^1. huh?/%", "obj_ch5_DW10_slash_Step_0_gml_78_0"); c_talkwait(); c_pan_fancy(campos_x, 0, 40); c_var_instance(asgore_flowery_hug, "image_index", 4); c_wait(30); c_sel_walk(ra, "r", 5, 10); c_sprite(spr_ralsei_walk_right_unhappy); c_wait(10); c_var_instance(asgore_flowery_hug, "visible", false); c_sel(asg); c_sprite(spr_asgore_surprise_walk_left); c_autofacing(false); c_visible(true); c_walk("l", 4, 6); c_sel(fl); c_visible(true); c_sprite(spr_flowery_sad_downleft); c_var_lerp("x", flpos.x, flpos.x + 18, 5, 2, "out"); c_wait(15); c_speaker("asgore"); c_msgsetloc(0, "\\Eg* Kris!^1? Kris^1, what are you doing here!?/", "obj_ch5_DW10_slash_Step_0_gml_105_0"); c_facenext("flowery", "A"); c_msgnextloc("\\EA* Well^1, this is a twist of the stem./%", "obj_ch5_DW10_slash_Step_0_gml_107_0"); c_talk(); c_wait_box(1); c_sel(fl); c_autowalk(false); c_imageindex(1); c_waittalk(); c_sel(fl); c_sprite(spr_flowery_pose); c_sound_play_x(snd_sparkle_gem, 0.4, 1.2); c_sel_sprite(asg, 7026); c_addxy(-14, -2); c_sel(su); c_sprite(spr_susie_shock_r); c_sel(ra); c_sprite(spr_ralsei_shocked_right); c_var_lerp_to_instance(ra_actor, "x", rapos.x, 15, 2, "out"); repeat (25) { c_customfunc(function() { with (instance_create_depth((fl_actor.bbox_left + fl_actor.bbox_right) / 2, (fl_actor.bbox_bottom + fl_actor.bbox_top) / 2, as_actor.depth, obj_orbitparticle)) { xstart += random_range(-15, 15); ystart += random_range(-15, 15); sprite_index = choose(spr_bush_leaf_gold, spr_bush_leaf2_gold, spr_bush_leaf3_gold); scr_darksize(); orbit_depth = depth; orbit_target = other.as_actor; y_target = random_range(other.as_actor.bbox_top, other.as_actor.bbox_bottom); x_target_new = (other.as_actor.bbox_left + other.as_actor.bbox_right) / 2; orbit_dist = 0; orbit_target_follow = false; orbit_speed = 7; image_alpha = 0.7; event_perform(ev_step, ev_step_normal); with (instance_create_depth(x, y, depth - 10, obj_sparkle_fake_particle)) { image_xscale = 2; image_yscale = 2; image_speed = 0.25; speed = 3; friction = 0.1; direction = random(360); image_blend = merge_color(c_yellow, c_white, random(0.7)); } alarm[0] = 5; } }); c_wait(1); } c_wait(10); c_wait(30); var _floatfunc = function() { draw_sprite_ext(sprite_index, image_index, x, y + (sin(++floater * 0.13962634015954636) * 5), image_xscale, image_yscale, image_angle, image_blend, image_alpha); }; c_sel(asg); c_var("floater", 0); c_var("skipnormaldraw", true); c_draw_func(_floatfunc); c_sel_spriteimage(asg, 740, 0, 0.2, false); c_wait(10); c_speaker("asgore"); c_msgsetloc(0, "\\Ef* Wh... what are you doing...!?/%", "obj_ch5_DW10_slash_Step_0_gml_204_0"); c_talk_wait(); c_autowalk(false); c_imagespeed(0.2); c_var_instance(as_actor, "gravity", -0.18); c_customfunc(function() { with (obj_orbitparticle) grav = -0.18; }); c_speaker("asgore"); c_msgzurasu(true); c_msgsetloc(0, "\\Eh* Let me go...!/%", "obj_ch5_DW10_slash_Step_0_gml_219_0"); c_talk(); c_wait(10); c_sel(su); c_autofacing(false); c_sprite(spr_susie_run_eyes); c_addxy(0, 12); c_autowalk(false); c_imagespeed(0); c_var_lerp_instance(su_actor, "image_index", 2, 9, 20); c_walk("r", 13, 20); c_sel(ra); c_sprite(spr_ralsei_walk_right_unhappy); c_autofacing(false); c_walk("r", 8, 28); c_sel(kr); c_walk("r", 8, 28); c_pan_fancy(campos_x + 60, 0, 20); c_wait(23); c_sel(ra); c_sel(su); c_spriteimage(5721, 1); c_autowalk(false); c_var_lerp_instance(su_actor, "image_index", 1, 4, 15); c_wait(15); c_sel(kr); c_waittalk(); c_speaker("susie"); c_msgsetloc(0, "\\EJ* Kris's Dad!/%", "obj_ch5_DW10_slash_Step_0_gml_253_0"); c_talk_wait(); disappearspeed = 0.2; c_customfunc(function() { with (obj_orbitparticle) instance_destroy(); fallingstar.x = 632; scr_lerp_var_instance(fallingstar, "y", fallingstar.ystart, 71, 90); }); c_delay_customfunc(90, function() { fallingstar.sprite_index = spr_fallingstar_gone; fallingstar.image_index = 0; fallingstar.image_speed = disappearspeed; }); c_delay_customfunc(90 + (3 / disappearspeed), function() { fallingstar.visible = false; }); c_wait_if(fallingstar, "y", ">", 10); c_sel_facing(kr, "u"); c_sel_facing(su, "u"); c_addxy(0, -12); c_autowalk(true); c_sel_facing(ra, "u"); c_wait_if(fallingstar, "y", ">=", 70); c_wait(10); c_sel(ra); c_sprite(spr_ralsei_walk_right_unhappy); c_sel(su); c_autodepth(false); c_sprite(spr_susie_pointright); c_sel(kr); c_facing("r"); c_speaker("susie"); c_msgsetloc(0, "\\EI* H-hey^1! What the hell are you doing!?/", "obj_ch5_DW10_slash_Step_0_gml_296_0"); c_msgnextloc("\\Ea* We need to get him out of here!!/%", "obj_ch5_DW10_slash_Step_0_gml_297_0"); c_talk_wait(); c_sel_walk(kr, "r", 5, 10); c_sel_walk(ra, "d", 5, 9); c_sprite(spr_ralsei_walk_down_unhappy); c_autowalk(true); c_autofacing(false); c_delaywalkdirect(10, 464, 227, 12); c_delaycmd(10, "sprite", spr_ralsei_walk_right_unhappy); c_sel(fl); c_sprite(spr_flowery_walk_upright); c_autowalk(true); c_autofacing(false); c_walk("r", 2, 30); c_wait_if(fallingstar, "visible", "=", false); c_pan_fancy(campos_x + 60 + 120, 0, 30); c_wait(50); c_customfunc(function() { snd_volume(wind_sound, 0.15, 70); snd_pitch(wind_sound, 0.75); }); c_wait(30); c_speaker("flowery_noface"); c_msgsetloc(0, "\\E3* Kris^1. You were a good kid^1, you know that?/", "obj_ch5_DW10_slash_Step_0_gml_323_0"); c_sel_spritenext(su, 591); c_msgnextloc("\\E3* But.../", "obj_ch5_DW10_slash_Step_0_gml_325_0"); c_msgnextloc("\\E3* It's best if Asgore doesn't see you anymore./", "obj_ch5_DW10_slash_Step_0_gml_326_0"); c_msgnextloc("\\E3\\Vn* So go home^1, Kris^1. Just leave everything to us./", "obj_ch5_DW10_slash_Step_0_gml_328_0"); c_facenext("susie", "I"); c_msgnextloc("\\EI* Go home^1? Are you stupid?/", "obj_ch5_DW10_slash_Step_0_gml_330_0"); c_msgnextloc("\\Eb* If we don't deal with that Fountain.../", "obj_ch5_DW10_slash_Step_0_gml_331_0"); c_msgnextloc("\\Ec* ..^1. the Knight's gonna kidnap ASGORE!/", "obj_ch5_DW10_slash_Step_0_gml_332_0"); c_facenext("flowery_noface", "0"); c_msgnextloc("\\E0* The Knight^1? Ah./", "obj_ch5_DW10_slash_Step_0_gml_334_0"); c_msgnextloc("\\E0* Don't worry^1, Princess./", "obj_ch5_DW10_slash_Step_0_gml_335_0"); c_msgnextloc("\\E0* It's nothing we can't handle on our own./", "obj_ch5_DW10_slash_Step_0_gml_336_0"); c_facenext("ralsei", "8"); c_msgnextloc("\\E8* ..^1. Flowery..^1. you.../", "obj_ch5_DW10_slash_Step_0_gml_338_0"); c_msgnextloc("\\ER* You have NO idea what you're dealing with./", "obj_ch5_DW10_slash_Step_0_gml_339_0"); c_msgnextloc("\\Ei* The KNIGHT will kill you./", "obj_ch5_DW10_slash_Step_0_gml_340_0"); c_facenext("flowery_noface", "0"); c_msgnextloc("\\E0* Kris..^1. Susie.../", "obj_ch5_DW10_slash_Step_0_gml_342_0"); c_msgnextloc("\\E0* I really do like you all^1, but.../", "obj_ch5_DW10_slash_Step_0_gml_343_0"); c_msgnextloc("\\E0* If you come any closer^1, we'll have to stop you./", "obj_ch5_DW10_slash_Step_0_gml_344_0"); c_facenext("flowery", "0"); c_msgnextloc("\\E0* For Asgore's happiness./%", "obj_ch5_DW10_slash_Step_0_gml_345_0"); c_talk(); c_sel(fl); c_autowalk(false); c_wait_box(2); c_sprite(spr_flowery_lookdown_upright); c_imageindex(1); c_wait_box(3); c_sprite(spr_flowery_shrug_upright_shakehead); c_imagespeed(0.2); c_wait_box(4); c_imagespeed(0); c_sprite(spr_flowery_lookdown_upright); c_imageindex(0); c_wait_box(6); c_sel(su); c_autodepth(false); c_sprite(spr_susie_pointright); c_shakeobj(su_actor); c_wait_box(9); c_sprite(spr_susie_walk_right_dw_unhappy); c_wait_box(11); c_sel(ra); c_sprite(spr_ralsei_walk_mad_right); c_autofacing(false); c_wait_box(13); c_walk("r", 4, 8); c_wait(10); c_wait_box(15); c_walk("r", 4, 12); c_wait_box(18); c_sel(fl); c_sprite(spr_flowery_shrug_upright_shakehead); c_imagespeed(0.2); c_wait_box(19); c_wait_if(fl_actor, "image_index", 3, ">="); c_imagespeed(0); c_imageindex(3); c_wait_box(20); c_sprite(spr_flowery_sad_downleft); c_imageindex(1); c_addxy(0, 2); c_sel(ra); c_sprite(spr_ralsei_walk_right_unhappy); c_wait_box(21); c_sel(fl); c_imageindex(0); c_waittalk(); c_sel(kr); c_walk("r", 2, 45); c_wait(60); c_speaker("flowery"); c_msgsetloc(0, "\\E5* I see./", "obj_ch5_DW10_slash_Step_0_gml_417_0"); c_msgnextloc("\\ED* Kris.../", "obj_ch5_DW10_slash_Step_0_gml_418_0"); c_facenext("flowery_noface", "2"); c_msgnextloc("\\E2* I can't say I don't respect your feelings.../", "obj_ch5_DW10_slash_Step_0_gml_419_0"); c_sel_spritenext(fl, 8512, 0); c_msgnextloc("\\E7* ..^1. if they're true./", "obj_ch5_DW10_slash_Step_0_gml_421_0"); c_sel_spritenext(fl, 8512, 1); c_facenext("flowery", "3"); c_msgnextloc("\\E3* If you're serious^1, I'll see you at Flower Castle./%", "obj_ch5_DW10_slash_Step_0_gml_423_0"); c_sel_spritenext(fl, 6126, 0); c_talk_wait(); c_sel(fl); c_autofacing(false); c_autowalk(true); c_sprite(spr_flowery_walk_right_jacket_hand_up); c_speaker("flowery"); c_msgsetloc(0, "\\E0* Adieu^1, my friends!/%", "obj_ch5_DW10_slash_Step_0_gml_435_0"); c_talk_wait(); c_step_func(function() { if (++flash_timer >= 3) { flash_timer = 0; image_alpha = 0; } else { image_alpha = 1; } }); c_wait(20); c_visible(false); c_sound_play_x(snd_sparkle_gem, 0.4, 1.2); repeat (28) { c_customfunc(function() { with (instance_create_depth((fl_actor.bbox_left + fl_actor.bbox_right) / 2, (fl_actor.bbox_bottom + fl_actor.y) / 2, fl_actor.depth, obj_orbitparticle)) { xstart += random_range(-15, 15); ystart += random_range(-15, 15); sprite_index = choose(spr_bush_leaf_gold, spr_bush_leaf2_gold, spr_bush_leaf3_gold); scr_darksize(); orbit_depth = depth; orbit_target = other.fl_actor; y_target = random_range(other.fl_actor.y + 15, other.fl_actor.bbox_bottom - 15); orbit_dist = 0; orbit_speed = 7; orbit_dist_target = 35; orbit_target_follow = false; grav = -0.1; image_alpha = 0.5; event_perform(ev_step, ev_step_normal); with (instance_create_depth(x, y, depth - 10, obj_sparkle_fake_particle)) { image_xscale = 2; image_yscale = 2; image_speed = 0.25; speed = 3; friction = 0.1; direction = random(360); image_blend = merge_color(c_orange, c_white, random(0.7)); } } }); c_wait(1); } c_sel(su); c_autofacing(false); c_sprite(spr_susie_run_right); c_addxy(0, 12); c_walk("r", 12, 15); c_wait(15); c_addxy(0, -12); c_sprite(spr_susie_grabbing); c_autowalk(false); c_imagespeed(0.25); c_speaker("susie"); c_msgsetloc(0, "\\EJ* H..^1. hey^1, wait!!/%", "obj_ch5_DW10_slash_Step_0_gml_493_0"); c_talk(); c_wait(10); c_var_lerp_to_instance(su_actor, "image_speed", 0, 60); c_wait(60); c_waittalk(); c_sel(ra); c_facing("u"); c_sel(su); c_facing("u"); c_sel(kr); c_facing("u"); c_customfunc(function() { fallingstar.visible = true; fallingstar.x = 752; fallingstar.y = fallingstar.ystart; fallingstar.sprite_index = spr_fallingstar; scr_lerp_var_instance(fallingstar, "y", fallingstar.ystart, 71, 90); }); c_delay_customfunc(91, function() { fallingstar.sprite_index = spr_fallingstar_gone; fallingstar.image_index = 0; fallingstar.image_speed = disappearspeed; }); c_delay_customfunc(90 + (3 / disappearspeed), function() { fallingstar.visible = false; }); c_wait(90); c_sel(su); c_sprite(spr_susie_look_down_right); c_speaker("susie"); c_msgsetloc(0, "\\EV* D..^1. damn.../%", "obj_ch5_DW10_slash_Step_0_gml_528_0"); c_talk_wait(); c_sel_walk(ra, "r", 4, 20); c_sprite(spr_ralsei_walk_right_unhappy); c_wait(20); c_speaker("ralsei"); c_msgsetloc(0, "\\E0* Don't worry^1, Susie./", "obj_ch5_DW10_slash_Step_0_gml_534_0"); c_msgnextloc("\\EE* I don't feel the Knight's presence at all yet^1, so.../", "obj_ch5_DW10_slash_Step_0_gml_535_0"); c_facenext("susie", "D"); c_msgnextloc("\\ED* We've still got some time..^1. huh./", "obj_ch5_DW10_slash_Step_0_gml_537_0"); c_sel_spritenext(su, 591); c_msgnextloc("\\E4* Well^1, let's hurry up and go!/%", "obj_ch5_DW10_slash_Step_0_gml_539_0"); c_sel_spritenext(su, 7432); c_talk_wait(); c_wait_if(fallingstar, "visible", "=", false); c_sel(su); c_autowalk(true); c_walkto_actor(kr_actor, -60, 0, 30, true); c_sel(ra); c_autowalk(true); c_walkto_actor(kr_actor, -100, 0, 30, true); c_panobj_fancy(kr_actor, 30); c_wait(31); c_sel_facing(su, "r"); c_sel_facing(ra, "r"); c_sel(kr); c_facing("d"); c_pannable(0); c_actortokris(); c_actortocaterpillar(); c_terminatekillactors(); } if (con == 3 && !i_ex(obj_cutscene_master)) { with (obj_orbitparticle) instance_destroy(); global.interact = 0; global.facing = 0; global.plot = 300; con = -99; scr_tempsave(); }