Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_drexit_Step_0

(view raw script w/o annotations or w/e)
1
if (exitCutscene == 1)
2
{
3
    global.cutscene = true;
4
    with (obj_pl)
5
    {
6
        image_speed = 0.2;
7
        vspeed = -0.5;
8
    }
9
    if (waiter == 0)
10
    {
11
        alarm[0] = 30;
gml_Object_obj_drexit_Alarm_0.gml

fade = true; audio_play_sound(mus_cymbal, 1, 0);
12
        alarm[1] = 275;
gml_Object_obj_drexit_Alarm_1.gml

room_goto(rm_snowdin_01_yellow Snowdin - Dark Ruins Exit); scr_cutscene_start(); with (obj_pl) { vspeed = 0; x = 100; y = 230; } exitCutscene = 2;
13
        waiter = 1;
14
    }
15
    if (fade == true)
16
        fadeAlpha += 0.006;
17
}
18
if (exitCutscene == 2)
19
{
20
    if (fadeAlpha > 0)
21
    {
22
        fadeAlpha -= 0.03;
23
    }
24
    else
25
    {
26
        scr_cutscene_end
scr_cutscene_end

function scr_cutscene_end() { global.cutscene = false; obj_pl.alarm[0] = 1; }
();
27
        instance_destroy();
28
    }
29
}