1 |
if (launched == false) |
2 |
{ |
3 |
x += lengthdir_x(prep_speed, image_angle) |
4 |
y += lengthdir_y(prep_speed, image_angle) |
5 |
} |
6 |
else |
7 |
{ |
8 |
if (move == true) |
9 |
{ |
10 |
i = 0 |
11 |
while (i < attack_mult) |
12 |
{ |
13 |
x += lengthdir_x(attack_speed, image_angle) |
14 |
y += lengthdir_y(attack_speed, image_angle) |
15 |
if place_meeting(x, y, obj_attack_boundary_box) |
16 |
{ |
17 |
move = false |
18 |
alarm[0] = fade_alarm |
19 |
break |
20 |
} |
21 |
else |
22 |
{ |
23 |
i++ |
24 |
continue |
25 |
} |
26 |
} |
27 |
} |
28 |
if (fade == true) |
29 |
{ |
30 |
if (image_alpha > 0) |
31 |
{ |
32 |
image_alpha -= 0.1 |
33 |
if (image_alpha <= 0) |
34 |
instance_destroy() |
35 |
} |
36 |
} |
37 |
} |