Undertale script viewer

← back to main script listing

gml_Object_obj_waterpillar_Step_0

(view raw script w/o annotations or w/e)
1
if (on == 1)
2
{
3
    image_xscale -= 0.4;
4
    image_alpha += 0.25;
5
    image_yscale += 0.3;
6
    if (image_alpha >= 1)
7
        image_alpha = 1;
8
    if (image_yscale >= 1)
9
        on = 2;
10
    alarm[0] = 3;
11
}
12
if (on == 2)
13
    image_yscale += 0.1;
14
if (on == 0)
15
{
16
    image_xscale += 0.25;
17
    image_alpha -= 0.25;
18
    image_yscale -= 0.4;
19
    if (image_yscale < 0.1)
20
        instance_destroy();
21
}