Undertale script viewer

← back to main script listing

gml_Object_obj_zzz_Step_0

(view raw script w/o annotations or w/e)
1
stage += 1;
2
if (stage < 40)
3
{
4
    if (image_alpha < 1)
5
        image_alpha += 0.05;
6
}
7
if (stage > 50)
8
{
9
    image_alpha -= 0.05;
10
    if (image_alpha <= 0)
11
        instance_destroy();
12
}
13
x += (sin(stage / 8) * 0.5);
14
if (image_index >= 2)
15
    image_speed = 0;