1 |
if (image_alpha < 1 && can_charge == false) |
2 |
{ |
3 |
image_alpha += fade_speed |
4 |
if (image_alpha >= 1) |
5 |
{ |
6 |
image_alpha = 1 |
7 |
alarm[0] = charge_alarm * chalm_mult - chalm_subalarm[0]with (id_cape)
image_speed = default_imspd |
8 |
} |
9 |
} |
10 |
if (can_charge == true) |
11 |
{ |
12 |
x += (x_dir * charge_speed) |
13 |
y += (y_dir * charge_speed) |
14 |
if (distance_to_point(id_cape.x, id_cape.y) <= cape_distance) |
15 |
{ |
16 |
with (id_cape) |
17 |
{ |
18 |
if (image_speed >= 0 && can_disappear == false) |
19 |
image_speed = (-default_imspd) |
20 |
} |
21 |
} |
22 |
if place_meeting(x, y, obj_dialogue_box_battle_transformation_any) |
23 |
in_box = true |
24 |
if ((!(place_meeting(x, y, obj_dialogue_box_battle_transformation_any))) && in_box == true) |
25 |
{ |
26 |
image_alpha -= fade_speed |
27 |
if (image_alpha <= 0) |
28 |
instance_destroy() |
29 |
} |
30 |
} |