1 |
if (image_alpha < 1 && can_move == false) |
2 |
{ |
3 |
image_alpha += 0.1 |
4 |
if (image_alpha > 1) |
5 |
image_alpha = 1 |
6 |
if (image_alpha == 1) |
7 |
can_move = true |
8 |
} |
9 |
if (can_move == true) |
10 |
{ |
11 |
animation_disjoint_y += y_speed |
12 |
y = round(starting_position_y + animation_disjoint_y) |
13 |
game_maker_cannot_do_math = power((time_elapsed_angle / (time_max_angle / 2 * (1 / sqrt(max_rise_angle))) - sqrt(max_rise_angle)), 2) |
14 |
animation_disjoint_angle = sign_modifier_angle * (max_rise_angle - round(game_maker_cannot_do_math)) |
15 |
time_elapsed_angle += time_increase_angle |
16 |
if (time_elapsed_angle >= time_max_angle) |
17 |
{ |
18 |
time_elapsed_angle = 0 |
19 |
sign_modifier_angle = (-sign_modifier_angle) |
20 |
} |
21 |
image_angle = animation_disjoint_angle |
22 |
} |
23 |
if (place_meeting(x, y, obj_dialogue_box_battle_transformation_any) && in_box == false) |
24 |
in_box = true |
25 |
if ((!(place_meeting(x, y, obj_dialogue_box_battle_transformation_any))) && in_box == true) |
26 |
{ |
27 |
if (image_alpha > 0) |
28 |
{ |
29 |
image_alpha -= 0.1 |
30 |
if (image_alpha < 0) |
31 |
image_alpha = 0 |
32 |
if (image_alpha == 0) |
33 |
instance_destroy() |
34 |
} |
35 |
} |