Undertale script viewer

← back to main script listing

gml_Object_obj_napstablook2_Step_1

(view raw script w/o annotations or w/e)
1
scr_depth
scr_depth

depth = 50000 - ((y * 10) + (sprite_height * 10));
(0, 0, 0, 0, 0);
2
if (talkedto == 1 && instance_exists(obj_dialoguer) == 0)
3
{
4
    myinteract = 4;
5
    image_alpha -= 0.05;
6
    if (image_alpha < 0.1)
7
    {
8
        global.flag[36 spared_napstablook] = 2;
9
        instance_destroy();
10
    }
11
}