event_inherited(); timer--; if (timer == 0) { direction += clamp(angle_difference(scr_at_player(), direction), -45, 45); side *= -1; with (scr_bullet_create(x, y, obj_bullet_foxprint)) { direction = other.direction; image_angle = direction; image_xscale = 2; image_yscale = 2; owner = other.id; damage = 92; target = 4; with (scr_fire_bullet(x + lengthdir_x(14, direction), y + lengthdir_y(14, direction), obj_netskiebullet1, direction, 0, spr_bullet_toebean, true)) { owner = other.id; image_xscale = 2; image_yscale = 2; image_speed = 0; destroyonhit = false; } with (scr_fire_bullet(x + lengthdir_x(7, direction) + lengthdir_x(12, direction + 90), y + lengthdir_y(7, direction) + lengthdir_y(12, direction + 90), obj_netskiebullet1, direction + 20, 0, spr_bullet_toebean, true)) { owner = other.id; image_xscale = 2; image_yscale = 2; image_speed = 0; image_index = 1; destroyonhit = false; } with (scr_fire_bullet(x + lengthdir_x(7, direction) + lengthdir_x(12, direction - 90), y + lengthdir_y(7, direction) + lengthdir_y(12, direction - 90), obj_netskiebullet1, direction - 20, 0, spr_bullet_toebean, true)) { owner = other.id; image_xscale = 2; image_yscale = -2; image_speed = 0; image_index = 1; destroyonhit = false; } if (other.ratio) { var rotate = 22.5; while (rotate < 360) { with (scr_fire_bullet(x + lengthdir_x(16, direction + (rotate * other.side)), y + lengthdir_y(16, direction + (rotate * other.side)), obj_netskiebullet1, direction + (rotate * other.side), 1.8 + ((rotate % 90) / 90), spr_leafling_petal, true, false, 3)) { image_xscale = 0; image_yscale = 2; scr_lerpvar("image_xscale", 0, 2, 9); } rotate += 45; } } } timer = 30 + (10 * sameattack); show_debug_message(timer); } else if (timer < 21 && timer > 4) { direction += clamp(angle_difference(scr_at_player(), direction), -1.5, 1.5); x += lengthdir_x(2 + (timer / 5), direction); y += lengthdir_y(2 + (timer / 5), direction); var rotate = random(360); var dist = random(28); if ((timer % 3) == 2) { with (scr_fire_bullet(x + lengthdir_x(dist, rotate), y + lengthdir_y(dist, rotate), obj_bulletparent, (rotate + random(30)) - 15, random(1), spr_leafling_petal, false, false, 3)) { image_blend = c_gray; scr_lerp_imageblend(id, c_gray, c_black, 30); scr_lerpvar("image_alpha", 1, 0, 30); scr_doom(id, 31); image_angle = (other.direction - 9) + random(18); image_xscale = 2; image_yscale = 2; friction = speed / 40; } } }