Undertale script viewer

← back to main script listing

gml_Object_obj_redacted_a_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
scr_npc_anim
scr_npc_anim

tt = 0; if (myinteract == 3) { if (instance_exists(OBJ_WRITER)) { image_speed = 0.2; if (OBJ_WRITER.halt != 0) tt = 1; } else { tt = 1; } } if (tt == 1) { image_speed = 0; image_index = 0; }
();
3
image_alpha = 0;
4
dist = distance_to_object(obj_mainchara);
5
if (dist < 20)
6
{
7
    if (played == 0 && global.flag[94 current_napstablook_song] == 0)
8
    {
9
        caster_loop(global.currentsong, 0.8, 0.5);
10
        played = 1;
11
    }
12
    disto = 10 / (dist + 1);
13
    if (disto > 1)
14
        disto = 1;
15
    image_alpha = disto;
16
}