if (con == 0) { con = 1; alarm[4] = 90; } if (con == 2) { image_speed = 0.25; con = 3; alarm[4] = 12; } if (con == 4) { image_speed = 0; image_index = 0; con = 5; alarm[4] = 70; } if (con == 6) { image_speed = 0.334; con = 7; alarm[4] = 20; } if (con == 8) { image_index = 0; image_speed = 0; con = 9; alarm[4] = 70; remx = x; remy = y; shaketimer = 0; } if (con == 10) { con = 11; image_speed = 0.5; alarm[4] = 60; } if (con == 11) { shaketimer += 0.05; x = (remx + random(shaketimer / 2)) - random(shaketimer / 2); y = (remy + random(shaketimer / 4)) - random(shaketimer / 4); } if (con == 12) { x = remx + 10; y = remy + 20; underbed = scr_marker(remx, remy, spr_dkris_bed2); underbed.depth = 100000; sprite_index = spr_dkris_ground; image_index = 2; snd_play(snd_heavyswing); image_speed = 0; hspeed = -6; friction = 0.3; con = 13; alarm[4] = 7; } if (con == 14) { gravity = 1; con = 15; alarm[4] = 5; } if (con == 16) { gravity = 0; friction = 0.4; vspeed = 0; image_index = 0; snd_play(snd_impact); instance_create(0, 0, obj_shake); con = 17; alarm[4] = 90; } if (con == 18) { sprite_index = spr_dkris_ground; image_index = 1; x = 180; y = 119; con = 19; alarm[4] = 90; scr_minishakeobj(); } if (con == 20) { snd_play(snd_noise); sprite_index = spr_dkris_dl; x += 5; y -= 12; scr_minishakeobj(); image_index = 0; con = 21; alarm[4] = 60; } if (con == 22) { con = 23; goalx = 153; goaly = 125; stepcycle = 0; stepmax = 8; stepx = (goalx - x) / stepmax; stepy = (goaly - y) / stepmax; alarm[4] = 50; } if (con == 24) { x += stepx; y += stepy; snd_play(snd_step1); image_index = 1; scr_minishakeobj(); con = 25; alarm[4] = 15; } if (con == 26) { image_index = 0; stepcycle += 1; if (stepcycle >= stepmax) { con = 27; alarm[4] = 30; } else { con = 23; alarm[4] = 20; } } if (con == 28) { x = 158; y = 125; scr_minishakeobj(); sprite_index = spr_dkris_dr; snd_play(snd_step1); con = 29; alarm[4] = 60; } if (con == 30) { sprite_index = spr_dkris_readyhand; image_index = 0; image_speed = 0.1; con = 31; alarm[4] = 150; } if (con == 32) { image_speed = 0; con = 33; alarm[4] = 30; } if (con == 34) { flashobj = 0; image_index = 0; sprite_index = spr_dkris_grabheart; image_speed = 0.25; animtimer = 0; htimer = 0; remx = x; remy = y; con = 33.1; alarm[4] = 20; } if (con == 33.1) { animtimer += 1; if (animtimer == 13) snd_play(snd_heavyswing); if (animtimer == 14) { snd_play(snd_grab); snd_play(snd_hurt1); instance_create(0, 0, obj_shake); scr_minishakeobj(); } } if (con == 34.1) { image_speed = 0.4; sprite_index = spr_dkris_grabscream; scr_minishakeobj(); alarm[4] = 60; con = 35; shakeamt = 0; } if (con == 35) { htimer += 1; if (htimer == 1) snd_play(snd_hurt1); if (htimer >= 8) htimer = 0; x = (remx + random(0.8)) - random(0.8); y = (remy + random(0.8)) - random(0.8); } if (con == 36) { x = remx; y = remy; gnoise = 0; image_index = 0; sprite_index = spr_dkris_pullheart; image_speed = 0.334; con = 37; alarm[4] = 20; } if (con == 37) { if (image_index >= 2 && gnoise == 0) { burst = instance_create(x + 2, y + 10, obj_heartburst); gnoise = 1; snd_play(snd_grab); snd_play(snd_break2); } } if (con == 38) { image_speed = 0; con = 37.1; alarm[4] = 30; } if (con == 38.1) { sprite_index = spr_dkris_glowheart; con = 37.2; image_index = 0; image_speed = 0.2; snd_play(snd_break2); alarm[4] = 30; } if (con == 38.2) { image_speed = 0; con = 39; alarm[4] = 70; } if (con == 40) { x = 158; y = 125; sprite_index = spr_dkris_heartwalk; image_speed = 0.1; goalx = wagon.x - 47; goaly = wagon.y - 9; stepx = (goalx - x) / 100; stepy = (goaly - y) / 100; con = 41; steps = 0; samt = 0; } if (con == 41) { samt += 1; if (samt == 10) snd_play(snd_step1); if (samt == 20) samt = 0; steps += 1; x += stepx; y += stepy; if (steps >= 100) { con = 52; alarm[4] = 40; x = goalx; y = goaly; image_speed = 0; image_index = 0; } } if (con == 53) { with (wagon) visible = 0; sprite_index = spr_dkris_heartthrow; image_index = 0; image_speed = 0.25; con = 54; alarm[4] = 40; } if (con == 54) { if (image_index == 5) { snd_play(snd_impact); snd_play(snd_hurt1); snd_play(snd_locker); instance_create(0, 0, obj_shake); } } if (con == 55) { heartwagon = 1; sprite_index = spr_dkris_heartthrow_post; con = 56; alarm[4] = 30; } if (con == 57) { x = 158; y = 125; sprite_index = spr_dkris_ul; image_speed = 0; goalx = wagon.x - 47; goaly = wagon.y - 9; stepx = (goalx - x) / 100; stepy = (goaly - y) / 100; x = goalx; y = goaly; steps = 0; samt = 0; con = 58; alarm[4] = 30; } if (con == 59) { samt += 1; if (samt == 10) snd_play(snd_step1); if (samt == 20) samt = 0; image_speed = 0.1; x -= stepx; y -= stepy; steps += 1; if (steps >= 100) { image_index = 0; image_speed = 0; con = 60; alarm[4] = 30; } } if (con == 61) { sprite_index = spr_dkris_ur_pullknife; image_speed = 0; image_index = 0; con = 62; alarm[4] = 30; } if (con == 63) { image_speed = 0.1; con = 64; alarm[4] = 285; } if (con == 65) { eyeflash = scr_marker(x + 15, y + 9, spr_asgore_eyeflash_serious); eyeflash.image_blend = c_red; with (eyeflash) image_speed = 0.2; image_speed = 0; snd_play(snd_break2); con = 66; alarm[4] = 25; } if (con == 67) { with (eyeflash) instance_destroy(); con = 68; alarm[4] = 60; } if (con == 69) { pix = scr_marker(-10, -10, spr_pixel_white); with (pix) { image_blend = c_black; image_xscale = 700; image_yscale = 700; } con = 70; alarm[4] = 60; } if (con == 71) room_goto(PLACE_LOGO); if (heartwagon == 1) { if (left_p() && heartx > -4) heartx -= 1; if (right_p() && heartx < 4) heartx += 1; if (down_p() && hearty < 4) hearty += 1; if (up_p() && hearty > -4) hearty -= 1; } if (heartwagon == 2) { moved = 0; if (left_p()) moved = 1; if (right_p()) moved = 1; if (down_p()) moved = 1; if (up_p()) moved = 1; if (moved == 1 && shaketimer <= 0) { shaketimer = 24; cageamt = 4; snd_play(snd_noise); } if (cageamt > 0) cageamt -= 0.5; else cageamt = 0; shaketimer -= 1; }