contimer++; var offsetmultiplier = vertical_offset_mult; if (contimer == 1) { var dir = dashdir; obj_mainchara.cutscene = 1; var kris = 1198; kris.freeze = true; kris.fun = true; global.flag[7] = 1; var walktime = 7; snd_play(snd_wing); var ideal = [x + (dashdir * 40), y - 140]; var cx = clamp(ideal[0] - 300, 0, room_width - 640); var cy = clamp(ideal[1] - 200, 0, room_height - 480); scr_pan_lerp(cx, cy, walktime); with (obj_mainchara) { visible = 0; other.krmarker = instance_create(x, y, obj_marker); with (other.krmarker) { scr_spritematch(other); scr_addtosunshadows(id); image_speed = 0; depth = other.depth; var xoff = 24; var yoff = 38; sprite_index = spr_kris_plat_land; image_xscale = 2 * dir; x += xoff; y += yoff; scr_lerpvar("x", x, ideal[0] + xoff, 8, 3, "out"); scr_lerpvar("y", y, ideal[1] + yoff, 8, 3, "out"); scr_depth(self, (ideal[1] + yoff) - y); } } with (obj_caterpillarchara) { visible = 0; if (name == "ralsei") { other.ramarker = instance_create(x, y, obj_marker); with (other.ramarker) { scr_spritematch(other); scr_addtosunshadows(id); image_speed = 0; depth = other.depth; var xoff = 24; var yoff = 30; sprite_index = scr_flag_get(1311) ? spr_plat_ralsei_land_hat : spr_plat_ralsei_land; x += xoff; y += yoff; image_xscale = 2 * dir; scr_lerpvar("x", x, (ideal[0] + xoff) - (80 * dir), 8, 3, "out"); scr_lerpvar("y", y, ideal[1] + yoff + (40 * offsetmultiplier), 8, 3, "out"); scr_depth(self, (ideal[1] + yoff + (10 * offsetmultiplier)) - y); } } else { other.sumarker = instance_create(x, y, obj_marker); with (other.sumarker) { scr_spritematch(other); scr_addtosunshadows(id); image_speed = 0; depth = other.depth; var xoff = 24; var yoff = 38; sprite_index = spr_plat_susie_land; x += xoff; y += yoff; image_xscale = 2 * dir; scr_lerpvar("x", x, ideal[0] + xoff + (-60 * dir), 8, 3, "out"); scr_lerpvar("y", y, (ideal[1] + yoff) - (40 * offsetmultiplier), 8, 3, "out"); scr_depth(self, (ideal[1] + yoff) - (10 * offsetmultiplier) - y); } } } } if (contimer == 9) { flash_object(krmarker); flash_object(ramarker); flash_object(sumarker); doflash(); } if (contimer == 17) { con = 3; contimer = 0; start_running(krmarker, dashdir, 16777215, true); start_running(ramarker, dashdir, 65280, false); start_running(sumarker, dashdir, 16711935, false); obj_mainchara.x = krmarker.x - 24; obj_mainchara.y = krmarker.y - 38; obj_mainchara.depth = krmarker.depth; with (obj_caterpillarchara) { if (name == "ralsei") { var xoff = 24; var yoff = 30; x = other.ramarker.x - xoff; y = other.ramarker.y - yoff; depth = other.ramarker.depth; } else { var xoff = 24; var yoff = 38; x = other.sumarker.x - xoff; y = other.sumarker.y - yoff; depth = other.sumarker.depth; } } scr_caterpillar_interpolate("all"); event_user(0); scr_delay_var("con", 0, 16); instance_destroy(krmarker); instance_destroy(ramarker); instance_destroy(sumarker); }