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 |
exit; |
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 |
for (i = 0; i < fcreate_count; i += 1) |
30 |
{ |
31 |
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) |
32 |
{ |
33 |
fade_out_result = false; |
34 |
break; |
35 |
} |
36 |
} |
37 |
can_fade_out = fade_out_result; |
38 |
} |
39 |
} |