Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_steamworks_31_cutscene_neutral_Step_0

(view raw script w/o annotations or w/e)
1
switch scene
2
{
3
    case 0:
4
        if (obj_pl.y < 240)
5
        {
6
            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 }
()
7
            cutscene_audio_fade(obj_radio.current_song, 0, 500, 0.25, false)
8
            obj_pl.direction = 90
9
        }
10
        break
11
    case 1:
12
        cutscene_wait(1)
13
        break
14
    case 2:
15
        obj_steamworks_31_door.image_speed = 1
16
        audio_play_sound(snd_sliding_door_open, 1, 0)
17
        cutscene_advance()
18
        break
19
    case 3:
20
        if (obj_steamworks_31_door.image_index >= (obj_steamworks_31_door.image_number - 1))
21
            cutscene_advance()
22
        break
23
    case 4:
24
        global.sworks_flag[59] = 1
25
        audio_sound_gain(obj_radio.current_song, 1, 500)
26
        cutscene_end()
27
        break
28
}