Deltarune (Chapter 2) script viewer

← back to main script listing

gml_GlobalScript_scr_npcdir

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

function scr_npcdir() { if (facing == 0) sprite_index = dtsprite; if (facing == 1) sprite_index = rtsprite; if (facing == 2) sprite_index = utsprite; if (facing == 3) sprite_index = ltsprite; }
()
2
{
3
    if (facing == 0)
4
        sprite_index = dtsprite;
5
    if (facing == 1)
6
        sprite_index = rtsprite;
7
    if (facing == 2)
8
        sprite_index = utsprite;
9
    if (facing == 3)
10
        sprite_index = ltsprite;
11
}