1 |
if (state == 0 || state == 2) |
2 |
{ |
3 |
game_maker_cannot_do_math = power((time_elapsed_move / (time_max_move / 2 * (1 / sqrt(max_rise_move))) - sqrt(max_rise_move)), 2) |
4 |
animation_disjoint_x = sign_modifier_move * (max_rise_move - game_maker_cannot_do_math) |
5 |
x = default_x + animation_disjoint_x |
6 |
time_elapsed_move += time_increase_move |
7 |
if (time_elapsed_move > (time_max_move / 2)) |
8 |
{ |
9 |
if (state == 2) |
10 |
instance_destroy() |
11 |
else |
12 |
event_user(0) |
13 |
} |
14 |
} |
15 |
else if (state == 1) |
16 |
{ |
17 |
game_maker_cannot_do_math = power((time_elapsed / (time_max / 2 * (1 / sqrt(max_rise))) - sqrt(max_rise)), 2) |
18 |
animation_disjoint_yscale = sign_modifier * (max_rise - game_maker_cannot_do_math) |
19 |
time_elapsed += time_increase |
20 |
if (time_elapsed >= time_max) |
21 |
{ |
22 |
time_elapsed = 0 |
23 |
sign_modifier = (-sign_modifier) |
24 |
} |
25 |
image_yscale = default_yscale + animation_disjoint_yscale |
26 |
image_xscale = default_xscale - animation_disjoint_yscale * (max_rise_ext / max_rise) |
27 |
} |