if (!init) init = 1; if (con == 0 && !i_ex(obj_dw_transition)) { show_debug_message_concat("cutscene part 1 start"); alarm[0] = 1; global.interact = 1; } if (con == 1) { cutscene_master = scr_cutscene_make(); scr_maincharacters_actors(); scr_miniface_init_flowers(); c_mus2("volume", 0, 30); pos_flowery = findspriteinfo(spr_flowery_walk_downleft, "CUTSCENE_ASSETS", c_white); pos_flowery2 = findspriteinfo(spr_flowery_walk_downleft, "CUTSCENE_ASSETS", c_red); pos_seth = findspriteinfo(spr_seth_walk_right, "CUTSCENE_ASSETS", c_white); pos_seth2 = findspriteinfo(spr_seth_walk_right, "CUTSCENE_ASSETS", c_red); pos_seth3 = findspriteinfo(spr_seth_walk_right, "CUTSCENE_ASSETS", c_lime); pos_aqua = findspriteinfo(spr_enemy_aqua_idle, "CUTSCENE_ASSETS", c_white); pos_aqua2 = findspriteinfo(spr_enemy_aqua_idle, "CUTSCENE_ASSETS", c_red); pos_aqua3 = findspriteinfo(spr_enemy_aqua_idle, "CUTSCENE_ASSETS", c_lime); pos_bars = findspriteinfo(spr_dw_fcastle_jail_bars_fixed, "CUTSCENE_ASSETS"); seth_marker = scr_makemarker_fromstruct(pos_seth); aqua_marker = scr_makemarker_fromstruct(pos_aqua, true); aqua_marker.visible = false; aqua_marker.image_speed = 0.25; aqua_marker.sprite_index = spr_enemy_aqua_idle_r; aqua_marker.base_y = aqua_marker.ystart; prison_marker = scr_makemarker_fromstruct(pos_bars); prison_marker.reflect_jump_y = prison_marker.sprite_height; with (obj_castlereflect_manager) { add_sprite_offset(7807, -22, -18); add_sprite_offset(2591, -24, -18); add_sprite_offset(5745, -22, -18); add_sprite_offset(7884, 6, 0); add_reflection(other.aqua_marker); add_reflection(other.seth_marker); add_reflection(other.prison_marker); } prison_marker.visible = false; prison_marker.depth = 97500; fl = actor_count + 1; flowery_actor = scr_actor_quick_setup(pos_flowery, fl, "flowery_left"); cam_region = findspriteinfo(spr_debug_cameraregionpreview, "CUTSCENE_CAMERAS", c_white); cam_region2 = findspriteinfo(spr_debug_cameraregionpreview, "CUTSCENE_CAMERAS", c_red); cam_region3 = findspriteinfo(spr_debug_cameraregionpreview, "CUTSCENE_CAMERAS", c_lime); c_sel(kr); c_autodepth(false); c_sel(su); c_autodepth(false); c_sel(kr); c_autodepth(true); c_sel(su); c_autodepth(true); c_speaker("susie"); c_msgsetloc(0, "\\El* Awesome^1, we're back^1! Now we just need to find your.../%", "obj_ch5_DW19B_slash_Step_0_gml_97_0"); c_talk_wait(); c_sel_spriteimage(su, 844, 0); c_wait(20); c_speaker("susie"); c_msgsetloc(0, "\\EO* ..^1. your dad./", "obj_ch5_DW19B_slash_Step_0_gml_104_0"); c_facenext("susie", "R"); c_msgnextloc("\\ER* Nah^1, I guess..^1. that's not gonna work now^1, huh?/%", "obj_ch5_DW19B_slash_Step_0_gml_106_0"); c_sel_spritenext(su, 7407, 0); c_talk_wait(); c_sel_spriteimage(su, 844, 0); c_wait(30); c_speaker("susie"); c_msgsetloc(0, "\\ET* Hey^1, Kris..^1. what's going on with your dad?/", "obj_ch5_DW19B_slash_Step_0_gml_114_0"); c_msgnextloc("\\EU* Why would he kick us out^1? Did he.../%", "obj_ch5_DW19B_slash_Step_0_gml_115_0"); c_talk_wait(); c_snd_play(snd_locker); c_customfunc(function(arg0) { layer_sprite_index(arg0[0], arg0[1]); }, [wallswitch, 0]); c_var_instance(prison_marker, "visible", true); c_sel_sprite(su, 1027); c_shake(); c_wait(30); c_speaker("susie"); c_msgsetloc(0, "\\EZ* W-wait^1! We're trapped?!/%", "obj_ch5_DW19B_slash_Step_0_gml_133_0"); c_talk_wait(); var _handmarker = scr_dark_marker(su_actor.x, pos_su4.y, spr_susie_bars_arms); _handmarker.visible = false; _handmarker.depth = prison_marker.depth - 100; c_walkdirect(su_actor.x, pos_su4.y, 10); c_autowalk(true); c_wait(10); c_sprite(spr_susie_bars_under); c_var_instance(_handmarker, "visible", true); c_wait(10); c_mus2("free"); c_mus2("initloop", "flowery.ogg", 0); c_mus2("volume", 0.8, 0); c_sel_sprite(fl, 8043); c_sndplay(snd_spearappear); c_var_lerp_to_instance(flowery_actor, "x", pos_flowery2.x, 20, 2, "out"); c_customfunc(function() { with (flowery_actor) scr_afterimager(10, 2, true); }); c_wait(30); c_msgstay(5); c_speaker("flowery"); c_msgsetloc(0, "\\E2\\Vv* Heh^1, what a predictable creature./", "obj_ch5_DW19B_slash_Step_0_gml_166_0"); c_msgnextloc("\\E3\\Vh* You know every Castle has a jail^1, right?/", "obj_ch5_DW19B_slash_Step_0_gml_167_0"); c_msgsprite(fl, 6172, 0, 0.25); c_msgcmd("autowalk", false); c_msgcmd("autofacing", false); c_msgnextloc("\\E0* And just like all Castles.../", "obj_ch5_DW19B_slash_Step_0_gml_171_0"); c_msgcmd("imagespeed", 0); c_msgnextloc("\\E7* You're never getting out./%", "obj_ch5_DW19B_slash_Step_0_gml_173_0"); c_msgsprite(fl, 8512, 1, 0); c_talk_wait(); c_sel_sprite(fl, 4294); c_autowalk(true); c_autofacing(false); c_sel_walkdirect(fl, pos_flowery.x + 10, pos_flowery.y, 50); c_mus2("volume", 0, 50); c_speaker("flowery"); c_msgsetloc(0, "\\E0* Hahahahahflowers./%", "obj_ch5_DW19B_slash_Step_0_gml_187_0"); c_talk_wait(); c_wait_if(flowery_actor, "x", ">=", pos_flowery.x); c_speaker("susie"); c_msgsetloc(0, "\\EM* Ugh^1, that stupid nice-smelling jerk.../%", "obj_ch5_DW19B_slash_Step_0_gml_193_0"); c_talk_wait(); c_sel_sprite(su, 579); c_var_instance(_handmarker, "visible", false); c_autowalk(true); c_autofacing(false); c_walk("u", 2, 13); c_wait(13); c_walk("u", 1, 1); c_wait(1); c_facing("r"); c_sel_facing(kr, "l"); c_speaker("susie"); c_msgsetloc(0, "\\ED* Damnit^1. We're stuck in jail again^1, huh.../%", "obj_ch5_DW19B_slash_Step_0_gml_208_0"); c_talk_wait(); c_sel(su); c_walkto_actor(kr_actor, -60, 0, 20, true); c_wait(20); c_speaker("susie"); c_msgsetloc(0, "\\E2* You're an expert at this^1, right^1, Kris^1? Show me what you got./%", "obj_ch5_DW19B_slash_Step_0_gml_216_0"); c_talk_wait(); c_actortokris(); c_actortocaterpillar(); c_terminatekillactors(); con = 2; } if (con == 2 && !i_ex(obj_cutscene_master)) { show_debug_message_concat("cutscene part 1 ended"); global.interact = 0; global.facing = 0; with (obj_caterpillarchara) { fun = 0; scr_caterpillar_interpolate(); } moss_talk = instance_create_depth(pos_moss.x, pos_moss.y, pos_moss.depth, obj_interactable); moss_talk.sprite_index = pos_moss.sprite_index; moss_talk.image_xscale = pos_moss.image_xscale; moss_talk.image_yscale = pos_moss.image_yscale; moss_talk.visible = false; moss_talk.on_interact = method(id, function() { show_debug_message_concat("cutscene part 2 start"); alarm[0] = 1; global.interact = 1; with (moss_talk) instance_destroy(); }); con = 3; } if (con == 3) { } if (con == 4) { cutscene_master = scr_cutscene_make(); scr_maincharacters_actors(); fl = actor_count + 1; flowery_actor = scr_actor_quick_setup(pos_flowery, fl, "flowery_left"); c_sel_walkdirect(kr, pos_kr3.x, pos_kr3.y, 15); c_sel_walkdirect(su, pos_su2.x, pos_su2.y, 15); c_wait(15); c_sel_facing(kr, "r"); c_sel_facing(su, "u"); c_speaker("no_name"); c_msgsetloc(0, "* (Even moss drinks water^1. Perpetuate the cycle of life?)/%", "obj_ch5_DW19B_slash_Step_0_gml_271_0"); c_talk_wait(); global.msc = -99; global.choice = -1; global.choicemsg[0] = stringsetloc("#Perpetuate#the#cycle", "obj_ch5_DW19B_slash_Step_0_gml_276_0"); global.choicemsg[1] = stringsetloc("#Do not", "obj_ch5_DW19B_slash_Step_0_gml_277_0"); global.choicemsg[2] = stringset(""); global.choicemsg[3] = stringset(""); c_speaker("none"); c_msgset(0, "\\C2"); c_customfunc(function() { var d = d_make(); d.side = 1; }); c_waitcustom(); con = 4.1; timer = 0; } if (con == 4.1 && customcon == 1 && global.choice != -1) { k_d(4); timer++; if (timer > 2) con = 5; } if (con == 5 && customcon == 1 && global.choice != -1) { customcon = 0; c_waitcustom_end(); var _subottom = obj_mainchara.sprite_index == spr_krisr_dark; if (global.choice == 0) { c_sel_sprite(su, 2265); c_sel_sprite(kr, 5904); c_snd_play(snd_swallow); c_snd_play(snd_power); c_speaker("no_name"); c_msgsetloc(0, "* (The moss was consumed.)/%", "obj_ch5_DW19B_slash_Step_0_gml_317_0"); c_talk_wait(); } if (global.choice == 1) { c_speaker("susie"); c_msgsetloc(0, "\\E5* Hey^1, the hell are you waiting for!?/", "obj_ch5_DW19B_slash_Step_0_gml_331_0"); c_msgnextloc("\\EH* Eating that moss might be our only way out!!/%", "obj_ch5_DW19B_slash_Step_0_gml_332_0"); c_talk_wait(); c_sel_sprite(su, 2265); c_snd_play(snd_swallow); c_snd_play(snd_power); c_speaker("no_name"); c_msgsetloc(0, "* (The moss was consumed.)/%", "obj_ch5_DW19B_slash_Step_0_gml_349_0"); c_talk_wait(); } c_sel_facing(kr, "r"); c_sel_facing(su, "u"); c_speaker("susie"); c_msgsetloc(0, "\\E2* Alright^1, that's gotta have helped somehow./%", "obj_ch5_DW19B_slash_Step_0_gml_357_0"); c_talk_wait(); c_pan_fancy(cam_region2.x, cam_region2.y, 30); c_sel_sprite(fl, 3338); c_wait(30); c_speaker("flowery"); c_msgsetloc(0, "\\E3\\V8* Heh^1. Once again.../", "obj_ch5_DW19B_slash_Step_0_gml_367_0"); c_msgnextloc("\\E2\\Vv* You don't think we didn't predict that?/%", "obj_ch5_DW19B_slash_Step_0_gml_368_0"); c_msgcmd("autowalk", false); c_spritenext(6172, 0, 0.25); c_talk_wait(); c_image_speed(0); c_spriteimage(6414, 0, 0); var _growthFunc = function() { if (growth == 0) { repeat (2) { var _particle = scr_dark_marker(x + random_range(-6, 6), y + random_range(-6, 6), spr_particle); scr_doom(_particle.id, 20); _particle.image_blend = #BCD090; _particle.gravity = 0.5; _particle.vspeed = -5; _particle.hspeed = random_range(-3, 3); _particle.depth = depth - 1000; } } growth += (1 / growthspeed); image_xscale = animcurve_channel_evaluate(animcurve_get_channel(2, "elastic"), growth) * 2; image_yscale = image_xscale; if (growth >= 1) step_func = -1; }; var _pitchup = 0; for (var i = 0; i < array_length(moss_spawners); i++) { var _moss = scr_marker_centered_frominstance(moss_spawners[i]); _moss.image_xscale = 0.2; _moss.image_yscale = 0.2; _moss.visible = false; _moss.depth = 900000; _moss.growth = 0; _moss.growthspeed = 20; c_var_instance(_moss, "visible", true); c_set_func(_moss, undefined, _growthFunc); c_snd_play_x(snd_board_lift, 0.3, 1.25 + random(0.1) + _pitchup); _pitchup += 0.01; c_wait(2); if (i == 0) c_sel_sprite(su, 1027); } c_wait(25); c_sel_spriteimage(fl, 3389, 0, 0.25, true); c_sndplay(snd_spearappear); c_var_lerp_to_instance(flowery_actor, "x", pos_flowery.x + 300, 30); c_customfunc(function() { with (flowery_actor) scr_afterimager(15, 2, true); }); c_wait(30); c_speaker("susie"); c_msgsetloc(0, "\\EH* Damnit^1, we'll never get out at this rate!/%", "obj_ch5_DW19B_slash_Step_0_gml_395_0"); c_talk_wait(); c_var_instance(aqua_marker, "visible", true); c_pan(cam_region.x, cam_region.y, 30); c_wait(30); c_mus2("free"); c_customfunc(scr_musicer, "meeting_flower.ogg"); c_speaker("aqua"); c_msgsetsubloc(0, "~1* Uuu^1, what are you guys~2playing!?/%", (global.lang == "ja") ? "\\m0\t\t\t" : "\\m0\t\t", (global.lang == "ja") ? "&\t\t\t\t" : "&\t\t", "obj_ch5_DW19B_slash_Step_0_gml_409_0"); c_talk_wait(); c_sel_facing(kr, "l"); c_sel_facing(su, "l"); c_wait(15); c_msgstay(5); c_speaker("susie"); c_msgsetloc(0, "\\EK* Uhhh..^1. jail...?/%", "obj_ch5_DW19B_slash_Step_0_gml_418_0"); c_talk_wait(); var _jumpfunc = function() { if (jumping == 1) { reflect_jump_y = (base_y - y) * 1.5; var _jumpheight = 60; if (y >= ystart) { if (!jump_end || jump_dir == -1) { gravity = gravity_next; hspeed = jump_dir * 3; y = ystart; vspeed = -sqrt(2 * _jumpheight * gravity); if (swapdir) jump_dir *= -1; } else { y = ystart; gravity = 0; hspeed = 0; vspeed = 0; } } } if (jumping == 2) { var _jumpheight = 30; if (y >= ystart) { if (!jump_end || jump_dir == -1) { gravity = 1.4; hspeed = 0; y = ystart; vspeed = -sqrt(2 * _jumpheight * gravity); if (swapdir) jump_dir *= -1; with (bouncetarget) image_index = 1; } else { y = ystart; gravity = 0; hspeed = 0; vspeed = 0; } } else { with (bouncetarget) image_index = 0; } } }; aqua_marker.jumping = false; aqua_marker.bouncetarget = su_actor.id; aqua_marker.swapdir = true; aqua_marker.jump_dir = 1; aqua_marker.gravity_next = 0.8; aqua_marker.jump_end = false; aqua_marker.end_step_func = method(aqua_marker.id, _jumpfunc); c_var_instance(aqua_marker, "jumping", true); c_var_instance(aqua_marker, "gravity", 0.8); c_var_instance(aqua_marker, "sprite_index", spr_enemy_aqua_spin); c_speaker("aqua"); c_msgsetsubloc(0, "~1* Uuu^1, that sounds fun^1! How do~2you play^1, how do you play!?/%", (global.lang == "ja") ? "\\m0\t\t\t" : "\\m0\t\t", (global.lang == "ja") ? "&\t\t\t\t" : "&\t\t", "obj_ch5_DW19B_slash_Step_0_gml_489_0"); c_talk_wait(); c_wait(20); if (_subottom) { c_sel_walk(su, "l", 4, 30); c_wait(30); } else { c_sel_walk(su, "l", 4, 15); c_wait(15); } c_sprite(spr_susie_walk_back_arm_left); c_speaker("susie"); c_msgsetloc(0, "\\E7* Hey^1, if all three of us get out^1, you win!/", "obj_ch5_DW19B_slash_Step_0_gml_509_0"); c_facenext("aqua", 0); c_msgcmd("var", aqua_marker, "gravity_next", 1.4); c_msgcmd("var", aqua_marker, "imagespeed", 0.5); c_msgnextsubloc("~1* Uuu^1, I know how^1, I know how!/%", (global.lang == "ja") ? "\\m0\t\t\t" : "\\m0\t\t", (global.lang == "ja") ? "&\t\t\t\t" : "&\t\t", "obj_ch5_DW19B_slash_Step_0_gml_513_0"); c_talk_wait(); c_sel_sprite(su, 582); c_markerwalkdirect(seth_marker, pos_seth2.x, pos_seth2.y, 60, 4189); c_wait(10); c_var_instance(aqua_marker, "jump_end", true); c_var_instance(aqua_marker, "sprite_index", spr_aqua_wave); c_wait(54); c_shaketarget(seth_marker); c_var_instance(seth_marker, "sprite_index", spr_seth_panic_r); c_speaker("aqua"); c_msgsetsubloc(0, "~1* Seth^1, let us out so we win!/", (global.lang == "ja") ? "\\m0\t\t\t" : "\\m0\t\t", (global.lang == "ja") ? "&\t\t\t\t" : "&\t\t", "obj_ch5_DW19B_slash_Step_0_gml_528_0"); c_msgcmd("var", aqua_marker, "sprite_index", 2815); c_sel_spritenext(su, 579); c_sel(kr); c_msgcmd("facing", "d"); c_facenext("seth", 0); c_msgnextsubloc("~1* Aqua^1, wh-why are you...!?/%", (global.lang == "ja") ? "\\m1\t\t\t" : "\\m1\t\t", (global.lang == "ja") ? "&\t\t\t\t" : "&\t\t", "obj_ch5_DW19B_slash_Step_0_gml_534_0"); c_msgcmd("var", seth_marker, "sprite_index", 90); c_msgcmd("varadd", seth_marker, "x", 24); c_msgcmd("varadd", seth_marker, "y", 8); c_talk_wait(); c_var_add_instance(seth_marker, "y", -8); c_var_instance(seth_marker, "sprite_index", spr_seth_walk_up); c_markerwalkdirect(seth_marker, pos_seth2.x + 24, pos_seth2.y - 30, 5, 6274); c_wait(6); c_var_instance(seth_marker, "sprite_index", spr_seth_grabbars); c_speaker("seth"); c_msgsetsubloc(0, "~1* Those are our ENEMIES^1,~2get out of there!!/", (global.lang == "ja") ? "\\m1\t\t\t" : "\\m1\t\t", (global.lang == "ja") ? "&\t\t\t\t" : "&\t\t", "obj_ch5_DW19B_slash_Step_0_gml_549_0"); c_msgcmd("var", aqua_marker, "sprite_index", 3436); c_msgcmd("var", seth_marker, "image_index", 0); c_msgcmd("shaketarget", seth_marker); c_facenext("susie", "2"); c_msgnextloc("\\E2* Hey^1, we can be friends with Aqua^1, too^1! Right^1, Aqua!?/", "obj_ch5_DW19B_slash_Step_0_gml_554_0"); c_msgsprite(su, 1771); c_facenext("aqua", 0); c_msgnextsubloc("~1* Uuu^1, really?/%", (global.lang == "ja") ? "\\m0\t\t\t" : "\\m0\t\t", (global.lang == "ja") ? "&\t\t\t\t" : "&\t\t", "obj_ch5_DW19B_slash_Step_0_gml_557_0"); c_msgcmd("var", aqua_marker, "sprite_index", 7199); c_talk_wait(); c_var_instance(aqua_marker, "jumping", 0); c_var_instance(aqua_marker, "sprite_index", spr_enemy_aqua_spin); c_var_instance(aqua_marker, "image_speed", 0.4); c_sel_facing(su, "d"); c_var_lerp_to_instance(aqua_marker, "reflect_jump_y", 300, 15); c_customfunc(function() { with (aqua_marker) { var _yyy = (other.su_actor.y - sprite_height) + 10; scr_jump_to_point(other.su_actor.x + 6, _yyy, 10, 15); ystart = _yyy; base_y = other.su_actor.bbox_bottom - sprite_height; depth = other.su_actor.depth - 10; } }); c_wait(15); c_sprite(spr_susie_hair_scrungle); c_var_instance(aqua_marker, "jump_end", false); c_var_instance(aqua_marker, "jumping", 2); c_speaker("aqua"); c_msgsetsubloc(0, "~1* Yay^1! Friends^1, friends!/", (global.lang == "ja") ? "\\m0\t\t\t" : "\\m0\t\t", (global.lang == "ja") ? "&\t\t\t\t" : "&\t\t", "obj_ch5_DW19B_slash_Step_0_gml_583_0"); c_facenext("seth", 0); c_msgnextsubloc("~1* Hey^1, stop that^1! STOP!!/", (global.lang == "ja") ? "\\m1\t\t\t" : "\\m1\t\t", (global.lang == "ja") ? "&\t\t\t\t" : "&\t\t", "obj_ch5_DW19B_slash_Step_0_gml_585_0"); c_msgcmd("var", seth_marker, "sprite_index", 6337); c_msgcmd("shaketarget", seth_marker); c_msgnextsubloc("~1* You..^1. you can't be friends~2with both THEM and ME!^1!~2Pick ONE!!!/", (global.lang == "ja") ? "\\m1\t\t\t" : "\\m1\t\t", (global.lang == "ja") ? "&\t\t\t\t" : "&\t\t", "obj_ch5_DW19B_slash_Step_0_gml_588_0"); c_msgcmd("var", seth_marker, "sprite_index", 6274); c_msgcmd("shaketarget", seth_marker); c_facenext("aqua", 0); c_msgnextsubloc("~1* Uuu..^1. I can only choose one~2friend^1? Seth or Susie?/", (global.lang == "ja") ? "\\m0\t\t\t" : "\\m0\t\t", (global.lang == "ja") ? "&\t\t\t\t" : "&\t\t", "obj_ch5_DW19B_slash_Step_0_gml_592_0"); c_msgcmd("var", aqua_marker, "sprite_index", 4056); c_msgnextsubloc("~1* Uuu..^1. but..^1. hmm..^1. you're~2both purple.../", (global.lang == "ja") ? "\\m0\t\t\t" : "\\m0\t\t", (global.lang == "ja") ? "&\t\t\t\t" : "&\t\t", "obj_ch5_DW19B_slash_Step_0_gml_594_0"); c_msgcmd("var", aqua_marker, "jump_end", true); c_msgcmd("var", aqua_marker, "sprite_index", 7441); c_msgnextsubloc("~1* Uuu^1, wait^1! I decided^1! I~2choose.../%", (global.lang == "ja") ? "\\m0\t\t\t" : "\\m0\t\t", (global.lang == "ja") ? "&\t\t\t\t" : "&\t\t", "obj_ch5_DW19B_slash_Step_0_gml_597_0"); c_msgcmd("shaketarget", seth_marker); c_msgcmd("var", aqua_marker, "sprite_index", 3337); c_msgcmd("var", aqua_marker, "image_speed", 0.25); c_talk_wait(); c_markerwalkdirect(seth_marker, pos_seth3.x, pos_seth2.y - 30, 15, 3844, 0.5); c_wait(16); c_var_instance(seth_marker, "sprite_index", spr_seth_walk_up); c_var_instance(seth_marker, "image_speed", 0); c_var_instance(seth_marker, "image_index", 0); c_snd_play(snd_locker); c_mus2("volume", 0, 1); c_var_instance(prison_marker, "visible", false); c_customfunc(function(arg0) { layer_sprite_index(arg0[0], arg0[1]); }, [wallswitch, 1]); c_shake(); c_wait(30); c_shaketarget(seth_marker); c_var_instance(seth_marker, "sprite_index", spr_seth_panic); c_var_instance(aqua_marker, "sprite_index", spr_enemy_aqua_pose_r); c_speaker("seth"); c_msgsetsubloc(0, "~1* S..^1. stop^1! Don't say it!/", (global.lang == "ja") ? "\\m1\t\t\t" : "\\m1\t\t", (global.lang == "ja") ? "&\t\t\t\t" : "&\t\t", "obj_ch5_DW19B_slash_Step_0_gml_622_0"); c_facenext("aqua", 0); c_msgnextsubloc("~1* Uuu?/%", (global.lang == "ja") ? "\\m0\t\t\t" : "\\m0\t\t", (global.lang == "ja") ? "&\t\t\t\t" : "&\t\t", "obj_ch5_DW19B_slash_Step_0_gml_624_0"); c_talk_wait(); c_var_lerp_to_instance(aqua_marker, "reflect_jump_y", 0, 15); c_customfunc(function() { with (aqua_marker) { sprite_index = spr_enemy_aqua_spin; image_speed = 0.4; var _yyy = other.pos_aqua.y + 6; scr_jump_to_point(other.su_actor.x - 70, _yyy, 10, 15); ystart = _yyy; base_y = other.pos_aqua.y + 6; depth = other.su_actor.depth - 10; } }); c_wait(15); c_snd_play(snd_noise); c_var_instance(aqua_marker, "sprite_index", spr_aqua_walk_down); c_var_instance(aqua_marker, "image_speed", 0); c_var_instance(aqua_marker, "image_index", 0); c_wait(5); c_sel_spriteimage(su, 1008, 0, 1); c_wait(10); c_sel_spriteimage(su, 579, 0, 0); c_wait(5); var _walkdowntime = 20; c_var_instance(aqua_marker, "sprite_index", spr_aqua_walk_down); c_var_instance(aqua_marker, "image_speed", 0.25); c_var_instance(aqua_marker, "jumping", 0); c_var_lerp_to_instance(aqua_marker, "y", pos_aqua2.y + 6, _walkdowntime); c_sel(su); c_autowalk(false); c_var_instance(su_actor, "sprite_index", spr_susie_walk_down_dw); c_var_instance(su_actor, "image_speed", 0.25); c_var_lerp_to_instance(su_actor, "y", pos_su3.y, _walkdowntime); c_pan(cam_region3.x, cam_region3.y, _walkdowntime); c_wait(_walkdowntime); c_var_instance(su_actor, "image_speed", 0); c_var_instance(su_actor, "image_index", 0); c_var_instance(aqua_marker, "image_speed", 0); c_var_instance(aqua_marker, "image_index", 0); c_facing("r"); c_var_instance(aqua_marker, "sprite_index", spr_aqua_walk_right); c_var_instance(seth_marker, "sprite_index", spr_seth_blush_r); c_speaker("seth"); c_msgsetsubloc(0, "~1* I can't..^1. trust you won't~2choose the wrong answer^1. So~2go./", (global.lang == "ja") ? "\\m1\t\t\t" : "\\m1\t\t", (global.lang == "ja") ? "&\t\t\t\t" : "&\t\t", "obj_ch5_DW19B_slash_Step_0_gml_678_0"); c_facenext("aqua", 0); c_msgnextsubloc("~1* Uuu^1, we won^1! I did it^1! We~2won!/%", (global.lang == "ja") ? "\\m0\t\t\t" : "\\m0\t\t", (global.lang == "ja") ? "&\t\t\t\t" : "&\t\t", "obj_ch5_DW19B_slash_Step_0_gml_680_0"); c_msgcmd("var", aqua_marker, "sprite_index", 2815); c_msgcmd("var", aqua_marker, "image_speed", 0.25); c_talk_wait(); c_speaker("aqua"); c_msgsetsubloc(0, "~1* Everyone's friends^1,~2everyone's friends!!/%", (global.lang == "ja") ? "\\m0\t\t\t" : "\\m0\t\t", (global.lang == "ja") ? "&\t\t\t\t" : "&\t\t", "obj_ch5_DW19B_slash_Step_0_gml_686_0"); c_talk(); c_mus2("free"); c_customfunc(scr_musicer, "meeting_flower.ogg"); c_customfunc(function() { aqua_marker.head_positions = [[kr_actor.x, (kr_actor.y - aqua_marker.sprite_height) + 10], [su_actor.x + 6, (su_actor.y - aqua_marker.sprite_height) + 10], [seth_marker.x + 12, (seth_marker.y - aqua_marker.sprite_height) + 10]]; aqua_marker.actors = [kr_actor, su_actor, seth_marker]; aqua_marker.percent = 1; aqua_marker.ending = false; aqua_marker.ended = false; }); c_var_instance(aqua_marker, "timer", 0); c_var_instance(aqua_marker, "pos", -1); c_var_instance(aqua_marker, "sprite_index", spr_enemy_aqua_spin); c_var_instance(seth_marker, "sprite_index", spr_seth_panic); c_sel_sprite(su, 579); c_var_instance(aqua_marker, "image_speed", 0.6); var _everyonefriendsfriends = function() { with (actors[0]) image_index = 0; with (actors[1]) image_index = 0; with (actors[2]) image_index = 0; if (percent >= 1) { if (ending && pos == 1) { ended = true; actors[1].image_index = 1; x = xTo; y = yTo; exit; } else { if (pos != -1) { with (actors[pos]) image_index = 1; } else { pos = 0; } if (++pos > 2) pos = 0; percent = 0; xstart = x; ystart = y; xTo = head_positions[pos][0]; yTo = head_positions[pos][1]; dist = point_distance(xstart, ystart, xTo, yTo); dir = point_direction(xstart, ystart, xTo, yTo); } } percent += (1/15); x = lerp(xstart, xTo, percent); y = lerp(ystart, yTo, percent); z = sin(percent * pi) * -40; y += z; show_debug_message_concat("z: ", z); depth = 95000; }; c_var_instance(kr_actor, "sprite_index", spr_kris_headbounce); c_var_instance(su_actor, "sprite_index", spr_susie_headbounce); c_var_instance(seth_marker, "sprite_index", spr_seth_panic_headbounce); c_var_lerp_to_instance(aqua_marker, "reflect_jump_y", 180, 15); c_set_func(aqua_marker, "end_step_func", _everyonefriendsfriends); c_waittalk(); c_var_instance(aqua_marker, "ending", true); c_wait_if(aqua_marker, "ended", "=", true); c_var_instance(su_actor, "image_index", 0); c_var_lerp_to_instance(aqua_marker, "reflect_jump_y", 0, 15); c_set_func(aqua_marker, "end_step_func", _jumpfunc); c_customfunc(function() { with (aqua_marker) { x = other.su_actor.x + 6; y = (other.su_actor.y - sprite_height) + 10; sprite_index = spr_enemy_aqua_spin; image_speed = 0.4; var _yyy = other.pos_aqua2.y + 6; scr_jump_to_point(other.su_actor.x + 70, _yyy, 10, 15); ystart = _yyy; base_y = other.pos_aqua2.y + 6; } }); c_wait(15); c_sel_sprite(su, 587); c_snd_play(snd_noise); c_var_instance(aqua_marker, "sprite_index", spr_aqua_laugh); c_var_instance(aqua_marker, "image_speed", 0.3); c_var_instance(aqua_marker, "image_index", 0); c_wait(20); c_var_instance(aqua_marker, "jumping", 1); c_var_instance(aqua_marker, "ystart", pos_aqua2.y); c_var_instance(aqua_marker, "jump_end", false); c_var_instance(aqua_marker, "swapdir", false); c_var_instance(aqua_marker, "jump_dir", 1.8); c_var_instance(aqua_marker, "gravity_next", 1); c_var_instance(aqua_marker, "gravity", 1); c_var_instance(aqua_marker, "sprite_index", spr_enemy_aqua_spin); c_var_instance(aqua_marker, "image_speed", 0.4); c_wait(15); c_var_instance(seth_marker, "sprite_index", spr_seth_exasperated); c_var_add_instance(seth_marker, "y", 8); c_sel_sprite(su, 633); c_sndplay(snd_suslaugh); c_mus2("volume", 0, 15); c_image_speed(0.25); c_wait(30); c_var_lerp_to_instance(su_actor, "image_speed", 0, 25); c_wait(35); c_sprite(spr_susie_walk_up_dw); c_imagespeed(0); c_imageindex(0); c_speaker("susie"); c_msgsetloc(0, "\\E9* C'mon^1, Kris^1! Let's go!/%", "obj_ch5_DW19B_slash_Step_0_gml_772_0"); c_talk_wait(); c_customfunc(function() { aqua_marker.depth = su_actor.depth; seth_marker.depth = su_actor.depth + 10; }); c_pan(cam_region3.x - 60, cam_region3.y, 30); c_sel(su); c_autowalk(true); c_walkdirect(pos_flowery.x + 100, pos_su3.y, 40); c_wait_if(su_actor, "x", ">", kr_actor.bbox_right); c_sel_sprite(kr, 364); c_wait_if(su_actor, "x", ">", seth_marker.bbox_right); c_var_instance(seth_marker, "sprite_index", spr_seth_idle_r); c_wait(50); c_var_instance(seth_marker, "sprite_index", spr_seth_adjust_glasses); c_flipinstance(seth_marker, "x"); c_var_instance(seth_marker, "image_index", 1); c_wait(6); c_var_instance(seth_marker, "image_index", 0); c_speaker("seth"); c_msgsetsubloc(0, "~1* ..^1. alright./", (global.lang == "ja") ? "\\m1\t\t\t" : "\\m1\t\t", (global.lang == "ja") ? "&\t\t\t\t" : "&\t\t", "obj_ch5_DW19B_slash_Step_0_gml_798_0"); c_msgnextsubloc("~1* I made good on our promise^1,~2didn't I?/%", (global.lang == "ja") ? "\\m1\t\t\t" : "\\m1\t\t", (global.lang == "ja") ? "&\t\t\t\t" : "&\t\t", "obj_ch5_DW19B_slash_Step_0_gml_799_0"); c_talk_wait(); c_flipinstance(seth_marker, "x"); c_var_instance(seth_marker, "sprite_index", spr_seth_walk_left); c_markerwalkdirect(seth_marker, kr_actor.x - 120, (pos_seth2.y - 30) + 8, 20, 4543, 0.4); c_wait(21); c_var_instance(seth_marker, "sprite_index", spr_seth_walk_up); c_markerwalkdirect(seth_marker, kr_actor.x - 120, kr_actor.y - 6, 8, 6274, 0.4); c_wait(9); c_var_instance(seth_marker, "sprite_index", spr_seth_battle); c_flipinstance(seth_marker, "x"); c_var_instance(seth_marker, "image_speed", 0); c_var_instance(seth_marker, "image_index", 0); c_sel_facing(kr, "l"); c_msgstay(12); c_speaker("seth"); c_msgsetsubloc(0, "~1* Before you made the Dark~2World...?/", (global.lang == "ja") ? "\\m1\t\t\t" : "\\m1\t\t", (global.lang == "ja") ? "&\t\t\t\t" : "&\t\t", "obj_ch5_DW19B_slash_Step_0_gml_824_0"); c_msgnextsubloc("~1* That if..^1. I helped you out^1,~2you'd make it worth my while?/", (global.lang == "ja") ? "\\m1\t\t\t" : "\\m1\t\t", (global.lang == "ja") ? "&\t\t\t\t" : "&\t\t", "obj_ch5_DW19B_slash_Step_0_gml_825_0"); c_msgcmd("var", seth_marker, "sprite_index", 8350); c_msgnextsubloc("~1* Well..^1. pay up^1! I want..^1.~2THAT!/%", (global.lang == "ja") ? "\\m1\t\t\t" : "\\m1\t\t", (global.lang == "ja") ? "&\t\t\t\t" : "&\t\t", "obj_ch5_DW19B_slash_Step_0_gml_827_0"); c_msgcmd("flipinstance", seth_marker, "x"); c_msgcmd("var", seth_marker, "sprite_index", 5690); c_msgcmd("var", seth_marker, "image_index", 0); c_msgfunc(function() { with (seth_marker) { x += 14; scr_lerpvar("image_index", 0, 2, 6); } }); c_talk_wait(); c_wait_if(seth_marker, "image_index", "=", 2); global.msc = -99; global.choice = -1; global.choicemsg[0] = stringsetloc("#Give it", "obj_ch5_DW19B_slash_Step_0_gml_847_0"); global.choicemsg[1] = stringsetloc("#No way", "obj_ch5_DW19B_slash_Step_0_gml_848_0"); global.choicemsg[2] = stringset(""); global.choicemsg[3] = stringset(""); c_speaker("none"); c_msgset(0, "\\C2"); c_customfunc(function() { var d = d_make(); d.side = 1; }); c_waitcustom(); con = 6; } if (con == 6 && customcon == 1 && global.choice != -1) { customcon = 0; c_waitcustom_end(); k_d(3); if (global.choice == 1) { c_speaker("seth"); c_msgsetsubloc(0, "~1* You don't have a choice^1,~2Kris^1! Hand it over./", (global.lang == "ja") ? "\\m1\t\t\t" : "\\m1\t\t", (global.lang == "ja") ? "&\t\t\t\t" : "&\t\t", "obj_ch5_DW19B_slash_Step_0_gml_872_0"); c_msgnextsubloc("~1* That's..^1. an order!!/%", (global.lang == "ja") ? "\\m1\t\t\t" : "\\m1\t\t", (global.lang == "ja") ? "&\t\t\t\t" : "&\t\t", "obj_ch5_DW19B_slash_Step_0_gml_873_0"); c_talk_wait(); } c_wait(20); c_sel_sprite(kr, 7884); c_imageindex(4); c_autowalk(false); c_snd_play(snd_noise); c_snd_play(snd_sparkle_glock); feather_sparkle = function() { if (image_alpha > 0) { timer++; if (timer > 20) { var _sparkle = instance_create_depth(x + random(sprite_width), y + random(sprite_height), depth - 50, obj_sparkle_fake_particle); with (_sparkle) { sprite_index = spr_tinysparkle_plus; direction = random(360); speed = 0.1 + random(0.2); image_speed = 0.125; image_xscale = 2; image_yscale = 2; gravity = -0.02; image_blend = choose(c_white, merge_color(c_white, #558ED5, random(0.3))); } timer = 0; } } }; feather_marker = scr_dark_marker_fancy(kr_actor.x - 24, kr_actor.y - 10, spr_blue_feather); feather_marker.image_alpha = 0; feather_marker.timer = 21; feather_marker.step_func = method(feather_marker.id, feather_sparkle); c_var_instance(feather_marker, "image_alpha", 1); c_shaketarget(seth_marker); c_var_instance(seth_marker, "sprite_index", spr_seth_omg); c_wait(40); c_var_instance(seth_marker, "sprite_index", spr_seth_gimme_bookfloor); c_var_instance(seth_marker, "image_speed", 0.125); c_speaker("seth"); c_msgsetsubloc(0, "~1* Ahh..^1. the feather of a true~2genius.../%", (global.lang == "ja") ? "\\m1\t\t\t" : "\\m1\t\t", (global.lang == "ja") ? "&\t\t\t\t" : "&\t\t", "obj_ch5_DW19B_slash_Step_0_gml_930_0"); c_talk_wait(); c_sel(su); c_setxy(pos_kr2.x + 50, pos_su3.y); c_sprite(spr_susie_turn_around_dw); c_flip("x"); c_var_lerp_to_instance(su_actor, "x", pos_seth3.x + 120, 20); c_wait(20); c_speaker("susie"); c_msgsetloc(0, "\\E5* Hey^1, Kris^1, why the hell do you have that?/%", "obj_ch5_DW19B_slash_Step_0_gml_943_0"); c_talk_wait(); c_sel(kr); c_imageindex(6); c_wait(5); c_imageindex(7); c_wait(20); c_speaker("susie"); c_msgsetloc(0, "\\EH* Let's go!!/%", "obj_ch5_DW19B_slash_Step_0_gml_955_0"); c_talk_wait(); c_sel(su); c_var_lerp_to_instance(su_actor, "x", pos_kr2.x + 50, 20); c_sel(kr); c_autowalk(true); c_walkto_straight(kr_actor, pos_kr2, 7, 0, "r"); c_var_lerp_to_instance(feather_marker, "y", 180, 10); c_wait(10); c_snd_play_x(snd_splat, 0.3, 2); c_var_instance(feather_marker, "sprite_index", spr_blue_feather_flat); c_var_instance(seth_marker, "sprite_index", spr_seth_floor_yell_book); c_pan(cam_region3.x - 100, cam_region3.y, 20); c_wait(20); c_speaker("seth"); c_msgsetsubloc(0, "~1* My^1, my soon-to-be prize~2possession!/%", (global.lang == "ja") ? "\\m1\t\t\t" : "\\m1\t\t", (global.lang == "ja") ? "&\t\t\t\t" : "&\t\t", "obj_ch5_DW19B_slash_Step_0_gml_976_0"); c_talk_wait(); c_var_instance(aqua_marker, "jumping", 0); c_var_instance(aqua_marker, "gravity", 0); c_var_instance(aqua_marker, "hspeed", 0); c_var_instance(aqua_marker, "vspeed", 0); c_var_instance(aqua_marker, "x", pos_aqua3.x); c_var_instance(aqua_marker, "y", pos_aqua3.y); c_var_lerp_to_instance(aqua_marker, "x", pos_seth3.x + 10, 15); c_var_lerp_to_instance(aqua_marker, "y", pos_seth3.y + 10, 15, 2); c_var_instance(aqua_marker, "base_y", pos_seth3.y + 10); c_var_lerp_instance(aqua_marker, "reflect_jump_y", 300, 0, 15, 2); c_wait(15); c_var_instance(aqua_marker, "sprite_index", spr_aqua_walk_up); c_var_instance(aqua_marker, "image_index", 0); c_var_instance(aqua_marker, "image_speed", 0); c_wait(6); c_snd_play(snd_locker); c_var_instance(prison_marker, "visible", true); c_customfunc(function(arg0) { layer_sprite_index(arg0[0], arg0[1]); }, [wallswitch, 0]); c_var_instance(seth_marker, "depth", prison_marker.depth + 10); c_var_instance(feather_marker, "depth", prison_marker.depth + 10); c_shake(); c_var_instance(seth_marker, "sprite_index", spr_seth_panic_r); c_var_add_instance(seth_marker, "x", -30); c_var_add_instance(seth_marker, "y", 4); c_wait(20); c_var_instance(aqua_marker, "sprite_index", spr_aqua_laugh); c_var_instance(aqua_marker, "image_speed", 0.25); c_speaker("aqua"); c_msgsetsubloc(0, "~1* Seth^1, you should try playing~2\"Jail\" too^1! It's fun!!!/%", (global.lang == "ja") ? "\\m0\t\t\t" : "\\m0\t\t", (global.lang == "ja") ? "&\t\t\t\t" : "&\t\t", "obj_ch5_DW19B_slash_Step_0_gml_1018_0"); c_talk_wait(); c_var_lerp_to_instance(aqua_marker, "x", pos_aqua3.x, 15); c_var_lerp_to_instance(aqua_marker, "y", pos_aqua3.y, 15, 2, "out"); c_var_lerp_instance(aqua_marker, "reflect_jump_y", 0, 300, 15, 2, "out"); c_var_instance(aqua_marker, "sprite_index", spr_enemy_aqua_spin); c_var_instance(seth_marker, "sprite_index", spr_seth_upset); c_var_add_instance(seth_marker, "x", 16); c_speaker("seth"); c_msgsetsubloc(0, "~1* AQUA!!!!!!!!!!!/%", (global.lang == "ja") ? "\\m1\t\t\t" : "\\m1\t\t", (global.lang == "ja") ? "&\t\t\t\t" : "&\t\t", "obj_ch5_DW19B_slash_Step_0_gml_1031_0"); c_talk_wait(); c_var_lerp_to_instance(blackall, "image_alpha", 1, 45); c_wait(45); c_mus2("volume", 0, 45); c_mus2("free"); c_actortokris(); c_actortocaterpillar(); c_terminatekillactors(); con = 7; } if (con == 7 && !i_ex(obj_cutscene_master)) { show_debug_message_concat("cutscene ended"); global.interact = 3; global.facing = 1; instance_create(0, 0, obj_persistentfadein); global.entrance = 1; room_goto(room_dw_fcastle_post_party_jail); if (plot_check_on) global.plot = plot_post; con = 999; }