if (init == 0) { init = 1; upper_vine = instance_place(x, y - 40, object_index); } if (con == 0) { if (timer <= 0) { timer = 999; scr_lerpvar("image_index", image_index_start, image_index_start + 4, 10); } setxy(x, y, myclimb); if (scicheck()) { con = 1; var dist = 0; var vol = -1; with (obj_climb_kris) { dist = distance_to_object_bbox(id, other); vol = scr_progress(dist, 250, 10, 0, 1); } if (vol > 0.1) { var snd = snd_play(snd_ghostappear, vol, random_range(1.8, 2.4)); snd_volume(snd, 0, 6); snd_play(snd_noise, vol / 2, 1.2); } with (instance_create(x, y, obj_marker)) { sprite_index = spr_dw_cliff_destructible_vines_cut; scr_darksize(); var sc = other.sprite_column; if (sc > 6) sc = 5; image_index = 3 * sc; image_speed = 0.25; depth = other.depth - 1; scr_doom(self, 10); } timer = waittime; } } if (con == 1) { image_index = image_index_start; setxy(x + (room_width * 4), y, myclimb); var countdown = false; if (!waittilscissorsgone) countdown = true; else if (!scicheck()) countdown = true; if (countdown) { timer--; if (timer <= 0) { var dist = 0; var vol = -1; with (obj_climb_kris) { dist = distance_to_object_bbox(id, other); vol = scr_progress(dist, 250, 10, 0, 1); } if ((vol / 3) > 0.05) { var snd = snd_play(snd_bigcut, vol / 3, 1.2); snd_volume(snd, 0, 3); } con = 0; } } }