Undertale Yellow script viewer

← back to main script listing

gml_GlobalScript_scr_turn

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

function scr_turn() //gml_Script_scr_turn { if (obj_pl.direction == 0) direction = 180 if (obj_pl.direction == 90) direction = 270 if (obj_pl.direction == 180) direction = 0 if (obj_pl.direction == 270) direction = 90 }
() //gml_Script_scr_turn
2
{
3
    if (obj_pl.direction == 0)
4
        direction = 180
5
    if (obj_pl.direction == 90)
6
        direction = 270
7
    if (obj_pl.direction == 180)
8
        direction = 0
9
    if (obj_pl.direction == 270)
10
        direction = 90
11
}