Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_pl_follow_Create_0

(view raw script w/o annotations or w/e)
1
usprite = spr_pl_up
2
dsprite = spr_pl_down
3
lsprite = spr_pl_left
4
rsprite = spr_pl_right
5
plspd = 3
6
direction = obj_pl.direction
7
no_loop_destination_dalv = false
8
if (direction == 0)
9
    sprite_index = rsprite
10
if (direction == 90)
11
    sprite_index = usprite
12
if (direction == 180)
13
    sprite_index = lsprite
14
if (direction == 270)
15
    sprite_index = dsprite