Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_battle_enemy_attack_axis_orange_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 (hspeed < speed_target)
13
        hspeed += 0.2
14
    else
15
        hspeed = speed_target
16
}
17
else if (hspeed > 0)
18
    hspeed -= 0.2
19
else
20
    hspeed = 0