1 |
if (can_spiral == 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 |
global.id_store = id |
18 |
frotate_angle_diff = 0 |
19 |
for (i = 0; i < fcreate_count; i += 1) |
20 |
{ |
21 |
frotate_angle_use = frotate_angle_diff + feather_angle_master |
22 |
if (frotate_angle_use < 0) |
23 |
frotate_angle_use += 360 |
24 |
else if (frotate_angle_use >= 360) |
25 |
frotate_angle_use -= 360 |
26 |
frotate_x = x + feather_radius * cos(degtorad(frotate_angle_use)) |
27 |
frotate_y = y - feather_radius * sin(degtorad(frotate_angle_use)) |
28 |
if instance_exists(id_feather[i]) |
29 |
{ |
30 |
with (id_feather[i]) |
31 |
event_user(0) |
32 |
} |
33 |
frotate_angle_diff -= fcreate_decrease |
34 |
if (frotate_angle_diff < 0) |
35 |
frotate_angle_diff += 360 |
36 |
} |
37 |
feather_angle_master += feather_angle_speed |
38 |
if (feather_angle_master >= 360) |
39 |
feather_angle_master -= 360 |
40 |
feather_radius += feather_radius_increase |
41 |
if (can_fade_out == false) |
42 |
{ |
43 |
var fade_out_result = true |
44 |
i = 0 |
45 |
while (i < fcreate_count) |
46 |
{ |
47 |
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) |
48 |
{ |
49 |
fade_out_result = false |
50 |
break |
51 |
} |
52 |
else |
53 |
{ |
54 |
i += 1 |
55 |
continue |
56 |
} |
57 |
} |
58 |
can_fade_out = fade_out_result |
59 |
} |
60 |
} |