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
alarm[0]

fade = true audio_play_sound(mus_cymbal, 1, 0)
12
        alarm[1] = 275
alarm[1]

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
        fadeAlpha -= 0.03
22
    else
23
    {
24
        scr_cutscene_end
scr_cutscene_end

function scr_cutscene_end() //gml_Script_scr_cutscene_end { global.cutscene = false obj_pl.alarm[0] = 1 }
()
25
        instance_destroy()
26
    }
27
}