if (dont == 0) { if (active == 0) { futuredir = point_direction(x, y, obj_heart.x + 8, obj_heart.y + 8); if (netskiebullet) draw_sprite_ext(spr_triangle_netskie_form, 0, x, y, 4 - (image_alpha * 2), 3 - (image_alpha * 2), futuredir, c_white, 1 - image_alpha); else draw_sprite_ext(spr_triangle_form, 0, x, y, 4 - (image_alpha * 2), 3 - (image_alpha * 2), futuredir, c_white, 1 - image_alpha); if (image_alpha < 1) { image_alpha += 0.1; } else { move_towards_point(obj_heart.x + 8, obj_heart.y + 8, 2); futuredir = direction; active = 1; speed = 0; } } draw_sprite_ext(sprite_index, 0, x, y, 3 - image_alpha, 2 - image_alpha, futuredir, c_white, image_alpha); if (active == 1) { activetimer += 1; if (activetimer >= 5 && times < difficulty) { mybul = instance_create(x, y, obj_spike_bullet); if (i_ex(mybul)) { mybul.grazepoints = grazepoints; mybul.damage = damage; mybul.target = target; mybul.grazepoints = 4; mybul.sprite_index = spr_triangle; mybul.direction = futuredir; mybul.image_xscale = 2; mybul.depth = depth - 1; with (mybul) { speed = 12; if (other.netskie) speed = 8; image_angle = direction; var aa = 0; for (var i = 0; i < instance_number(obj_dbulletcontroller); i++) { dbul[i] = instance_find(obj_dbulletcontroller, i); if (dbul[i].type == 141) aa = 1; } if (aa == 1) { speed = 6; } else { scr_lerpvar("speed", 0, speed, 15, -1, "in"); speed = 0; } } if (netskiebullet) { mybul.sprite_index = spr_triangle_netskie; mybul.speed = 6; mybul.image_xscale = 1; mybul.image_yscale = 1; } } times += 1; activetimer = 0; } if (activetimer >= 5 && times >= difficulty) { image_alpha -= 0.2; if (image_alpha <= 0) instance_destroy(); } } } dont = 0;