1 |
game_maker_cannot_do_math = power((time_elapsed / ((time_max / 2) * (1 / sqrt(max_rise)))) - sqrt(max_rise), 2); |
2 |
animation_disjoint_x = sign_modifier * (max_rise - game_maker_cannot_do_math); |
3 |
with (id_grid[0]) |
4 |
event_user(2); |
5 |
with (id_grid[1]) |
6 |
event_user(2); |
7 |
time_elapsed_decrease_total = 0; |
8 |
for (i = 2; i < 4; i += 2) |
9 |
{ |
10 |
time_elapsed_decrease_total += time_elapsed_decrease; |
11 |
var time_elapsed_tail = time_elapsed - time_elapsed_decrease_total; |
12 |
if (time_elapsed_tail < 0) |
13 |
{ |
14 |
time_elapsed_tail += time_max; |
15 |
sign_modifier_tail = -sign_modifier; |
16 |
} |
17 |
else |
18 |
{ |
19 |
sign_modifier_tail = sign_modifier; |
20 |
} |
21 |
game_maker_cannot_do_math = power((time_elapsed_tail / ((time_max / 2) * (1 / sqrt(max_rise)))) - sqrt(max_rise), 2); |
22 |
animation_disjoint_x = sign_modifier_tail * (max_rise - game_maker_cannot_do_math); |
23 |
with (id_grid[i]) |
24 |
event_user(2); |
25 |
with (id_grid[i + 1]) |
26 |
event_user(2); |
27 |
} |
28 |
time_elapsed += time_increase; |
29 |
if (time_elapsed >= time_max) |
30 |
{ |
31 |
time_elapsed = 0; |
32 |
sign_modifier = -sign_modifier; |
33 |
} |