Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_steamworks_04_b_cutscene_Step_0

(view raw script w/o annotations or w/e)
1
switch scene
2
{
3
    case 0:
4
        if (transition_alpha < 1)
5
            transition_alpha += 0.15
6
        else
7
            scene++
8
        break
9
    case 1:
10
        room = rm_steamworks_04_transition_c
11
        obj_pl.image_alpha = 0
12
        scene++
13
        break
14
    case 2:
15
        if (transition_alpha > 0)
16
            transition_alpha -= 0.1
17
        else
18
            scene++
19
        break
20
    case 3:
21
        cutscene_wait(0.5)
22
        break
23
    case 4:
24
        if (!audio_is_playing(snd_puzzle_woodmove))
25
            audio_play_sound(snd_puzzle_woodmove, 1, 0)
26
        if (tile_move_distance > 0)
27
        {
28
            tile_layer_shift(1000001, 1, 0)
29
            tile_move_distance -= 1
30
        }
31
        else
32
            cutscene_advance()
33
        break
34
    case 5:
35
        cutscene_sfx_play(snd_rock_break, 1)
36
        break
37
    case 6:
38
        cutscene_screenshake(0.5, 2)
39
        break
40
    case 7:
41
        cutscene_wait(1)
42
        break
43
    case 8:
44
        if (transition_alpha < 1)
45
            transition_alpha += 0.15
46
        else
47
            scene++
48
        break
49
    case 9:
50
        global.sworks_flag[1] = 1
51
        room = rm_steamworks_04b
52
        obj_pl.image_alpha = 1
53
        cutscene_advance()
54
        break
55
    case 10:
56
        if (transition_alpha > 0)
57
            transition_alpha -= 0.1
58
        else
59
            scene++
60
        break
61
    case 11:
62
        scr_cutscene_end
scr_cutscene_end

function scr_cutscene_end() //gml_Script_scr_cutscene_end { global.cutscene = false obj_pl.alarm[0] = 1 }
()
63
        instance_destroy()
64
        break
65
}