1 |
if (!instance_exists(obj_heart_battle_fighting_parent)) |
2 |
{ |
3 |
instance_destroy() |
4 |
return; |
5 |
} |
6 |
attack_target_x = creator.x |
7 |
attack_target_y = creator.y |
8 |
x = attack_target_x + (lengthdir_x(attack_distance, attack_dir)) |
9 |
y = attack_target_y + (lengthdir_y(attack_distance, attack_dir)) |
10 |
if (attack_dir < 360) |
11 |
attack_dir += bullet_speed |
12 |
else |
13 |
attack_dir = bullet_speed |
14 |
attack_distance += bullet_speed_2 |
15 |
bullet_speed_2 = lerp(bullet_speed_2, 4, 0.1) |
16 |
if (fade_out == true) |
17 |
{ |
18 |
if (image_alpha > 0) |
19 |
image_alpha -= 0.1 |
20 |
else |
21 |
instance_destroy() |
22 |
} |