Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_battle_enemy_attack_axis_blue_laser_grid_Step_0

(view raw script w/o annotations or w/e)
1
if live_call()
2
    return global.live_result;
3
if (image_alpha < 0.99)
4
{
5
    image_alpha = lerp(image_alpha, 1, 0.25)
6
    return;
7
}
8
else
9
    image_alpha = 1
10
if can_move
11
{
12
    if (vspeed < speed_target)
13
        vspeed += 0.2
14
    else
15
        vspeed = speed_target
16
}
17
else if (vspeed > 0)
18
    vspeed -= 0.2
19
else
20
    vspeed = 0