debug_message("I was born today"); debug_message("x:" + string(x)); debug_message("y:" + string(y)); debug_message("con:" + string(con)); if (!i_ex(target) && con < 20) { debug_message("target does not exist"); con = 99; instance_destroy(); exit; } if (con == 1) { if (fail == 0) { siner += 1; target.image_blend = merge_color(target.image_blend, flashcolor, 0.1); if ((siner % 2) == 0) { ai = instance_create(target.x + random(target.sprite_width), (target.y + target.sprite_height) - 20, obj_afterimage); ai.gravity = 0.5; ai.sprite_index = spr_savepoint; ai.image_speed = 0.2; } target.x += (siner / 4) + (sin(siner / 8) * 10); target.y -= siner / 5; } else { siner = 0; con = 5; } } if (con == 2) { with (target) instance_destroy(); instance_destroy(); } if (con == 5) { con = 6; alarm[4] = 8; } if (con == 6) target.image_blend = merge_color(target.image_blend, flashcolor, 0.12); if (con == 7) { con = 8; alarm[4] = 8; } if (con == 8) target.image_blend = merge_color(target.image_blend, c_white, 0.16); if (con == 9) { target.image_blend = c_white; instance_destroy(); } if (con == 20) { if (timer == 0 && zcounter == 0) snd_play(snd_pacify); timer--; if (timer <= 0) { var zobj = instance_create(x, y, obj_afterimage_grow); zobj.sprite_index = spr_spare_z; zobj.speed = 12; zobj.direction = zcounter * 40; zobj.friction = 1; timer = 2; zcounter++; } if (zcounter >= 9) { con++; instance_destroy(); } }