1 |
if (can_move == true) |
2 |
{ |
3 |
if (can_fade_out == true) |
4 |
{ |
5 |
if (feather_alpha > 0) |
6 |
{ |
7 |
feather_alpha -= 0.1 |
8 |
if (feather_alpha < 0) |
9 |
feather_alpha = 0 |
10 |
if (feather_alpha == 0) |
11 |
{ |
12 |
instance_destroy() |
13 |
return; |
14 |
} |
15 |
} |
16 |
} |
17 |
for (i = 0; i < fcreate_count; i += 1) |
18 |
{ |
19 |
if instance_exists(id_feather[i]) |
20 |
{ |
21 |
with (id_feather[i]) |
22 |
event_user(0) |
23 |
} |
24 |
} |
25 |
feather_radius += feather_speed |
26 |
if (can_fade_out == false) |
27 |
{ |
28 |
var fade_out_result = true |
29 |
i = 0 |
30 |
while (i < fcreate_count) |
31 |
{ |
32 |
if (id_feather[i].x <= obj_dialogue_box_battle_transformation_any.bbox_right && id_feather[i].x >= obj_dialogue_box_battle_transformation_any.bbox_left && id_feather[i].y <= obj_dialogue_box_battle_transformation_any.bbox_bottom && id_feather[i].y >= obj_dialogue_box_battle_transformation_any.bbox_top) |
33 |
{ |
34 |
fade_out_result = false |
35 |
break |
36 |
} |
37 |
else |
38 |
{ |
39 |
i += 1 |
40 |
continue |
41 |
} |
42 |
} |
43 |
can_fade_out = fade_out_result |
44 |
} |
45 |
} |