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(argument0, argument1, argument2) //gml_Script_scr_change_room { if (!instance_exists(obj_transition)) { trn = instance_create(x, y, obj_transition) trn.newRoom = argument0 if instance_exists(obj_pl) { trn.xx = argument1 trn.yy = argument2 } } }
(argument0, argument1, argument2) //gml_Script_scr_change_room
2
{
3
    if (!instance_exists(obj_transition))
4
    {
5
        trn = instance_create(x, y, obj_transition)
6
        trn.newRoom = argument0
7
        if instance_exists(obj_pl)
8
        {
9
            trn.xx = argument1
10
            trn.yy = argument2
11
        }
12
    }
13
}