if (con == 0) { nexttarget = instance_nearest(x, y, obj_attack_blue_flowerbullet); var pausetime = 3; if (i_ex(nexttarget)) { scr_lerpvar("x", x, nexttarget.x, 6); scr_lerpvar("y", y, nexttarget.y, 6); scr_lerpvar("image_angle", image_angle, image_angle + 90, 6); scr_script_delayed(scr_var, 6 + pausetime, "con", 1); } else { fade = scr_afterimage_grow(); fade.xrate = -0.2; fade.yrate = -0.2; instance_destroy(); } con = 999; } if (con == 1) { bul = instance_create(obj_enemy_yellow_example.x + 2, obj_enemy_yellow_example.y + 50, obj_attack_yellow_reticle_bullet); bul.sprite_index = spr_bullet_yellow; bul.speed = 4; bul.friction = -1; bul.direction = point_direction(bul.x, bul.y, x, y); bul.image_angle = bul.direction + 180; bul.image_alpha = 0; with (bul) scr_lerpvar("image_alpha", 0, 1, 4, 2, "in"); bul.destroyonhit = 0; con = 999; var waittime = 10; scr_script_delayed(scr_var, waittime, "con", 2); } if (con == 2 && !i_ex(nexttarget)) con = 0;