Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_mansion_hall_bedroom_door_Step_0

(view raw script w/o annotations or w/e)
1
event_inherited();
2
if (interact)
3
{
4
    audio_play_sound(snd_doorclose, 1, 0);
5
    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; } } }
(246, 80, 200);
6
    scr_cutscene_start
scr_cutscene_start

function scr_cutscene_start() { global.cutscene = true; obj_pl.state = scr_frozen_state; obj_pl.image_index = 0; obj_pl.image_speed = 0; }
();
7
}