Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_background_boss_battle_2_yellow_Step_0

(view raw script w/o annotations or w/e)
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
        sign_modifier_tail = sign_modifier
19
    game_maker_cannot_do_math = power((time_elapsed_tail / (time_max / 2 * (1 / sqrt(max_rise))) - sqrt(max_rise)), 2)
20
    animation_disjoint_x = sign_modifier_tail * (max_rise - game_maker_cannot_do_math)
21
    with (id_grid[i])
22
        event_user(2)
23
    with (id_grid[(i + 1)])
24
        event_user(2)
25
}
26
time_elapsed += time_increase
27
if (time_elapsed >= time_max)
28
{
29
    time_elapsed = 0
30
    sign_modifier = (-sign_modifier)
31
}