Undertale script viewer

← back to main script listing

gml_Object_obj_sweat99_Step_0

(view raw script w/o annotations or w/e)
1
if (on == 1)
2
{
3
    if (image_alpha < 1)
4
        image_alpha += 0.1;
5
    else
6
        on = 2;
7
    gravity = 0.1;
8
    alarm[1] = 20;
9
}
10
if (on == 3)
11
{
12
    if (image_alpha > 0)
13
        image_alpha -= 0.04;
14
    if (image_alpha < 0.1)
15
        instance_destroy();
16
}
17
image_angle = direction;