Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_dunes_42_door_Step_0

(view raw script w/o annotations or w/e)
1
event_inherited();
2
if ((interact || place_meeting(x, y, obj_pl)) && noloop == false)
3
{
4
    if (!instance_exists(obj_transition))
5
    {
6
        audio_play_sound(snd_doorclose, 1, 0);
7
        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; } } }
(283, 217, 200);
8
        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; }
();
9
        noloop = true;
10
    }
11
}