1 |
if (!instance_exists(obj_heart_battle_fighting_parent)) |
2 |
instance_destroy(); |
3 |
game_maker_cannot_do_math = power((time_elapsed / ((time_max / 2) * (1 / sqrt(max_rise)))) - sqrt(max_rise), 2); |
4 |
animation_disjoint_x = sign_modifier * (max_rise - round(game_maker_cannot_do_math)); |
5 |
time_elapsed += time_increase; |
6 |
if (time_elapsed >= time_max) |
7 |
{ |
8 |
time_elapsed = 0; |
9 |
sign_modifier = -sign_modifier; |
10 |
} |
11 |
x = draw_position_x + animation_disjoint_x; |
12 |
y -= y_increase; |
13 |
if (instance_exists(obj_dialogue_box_battle_transformation_any)) |
14 |
{ |
15 |
if (bbox_bottom < obj_dialogue_box_battle_transformation_any.bbox_top) |
16 |
instance_destroy(); |
17 |
} |
18 |
else |
19 |
{ |
20 |
instance_destroy(); |
21 |
} |