Undertale Yellow script viewer

← back to main script listing

gml_GlobalScript_scr_change_room

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

function scr_change_room(arg0, arg1, arg2) { if (!instance_exists(obj_transition)) { trn = instance_create(x, y, obj_transition); trn.newRoom = arg0; if (instance_exists(obj_pl)) { trn.xx = arg1; trn.yy = arg2; } } }
(arg0, arg1, arg2)
2
{
3
    if (!instance_exists(obj_transition))
4
    {
5
        trn = instance_create(x, y, obj_transition);
6
        trn.newRoom = arg0;
7
        if (instance_exists(obj_pl))
8
        {
9
            trn.xx = arg1;
10
            trn.yy = arg2;
11
        }
12
    }
13
}