Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_dunes_13_elevator_Create_0

(view raw script w/o annotations or w/e)
1
if (global.dunes_flag[4] == 2)
2
{
3
    image_speed = 0
4
    image_index = image_number - 1
5
    scr_cutscene_start
scr_cutscene_start

function scr_cutscene_start() //gml_Script_scr_cutscene_start { global.cutscene = true obj_pl.state = gml_Script_scr_frozen_state obj_pl.image_index = 0 obj_pl.image_speed = 0 }
()
6
    instance_create(100, 155, obj_npc_clover_dunes_13)
7
    return;
8
}
9
if (obj_pl.x < 280)
10
{
11
    scr_cutscene_start
scr_cutscene_start

function scr_cutscene_start() //gml_Script_scr_cutscene_start { global.cutscene = true obj_pl.state = gml_Script_scr_frozen_state obj_pl.image_index = 0 obj_pl.image_speed = 0 }
()
12
    image_index = image_number - 1
13
    image_speed = -0.3
14
    obj_pl.image_alpha = 1
15
    audio_play_sound(snd_elevator_open, 1, 0)
16
}
17
else
18
    image_speed = 0