Deltarune (Chapter 4) script viewer

← back to main script listing

gml_Object_obj_town_shelter_event_Create_0

(view raw script w/o annotations or w/e)
1
if (global.chapter == 4 && global.plot < 100)
2
{
3
    if (!snd_is_playing(global.currentsong[1]))
4
    {
5
        global.currentsong[0] = snd_init("mus_birdnoise.ogg");
6
        global.currentsong[1] = mus_loop_ext(global.currentsong[0], 1, 1);
7
    }
8
}
9
dk = snd_loop(snd_smile);
10
snd_volume(dk, 0, 0);
11
snd_pitch(dk, 0.15);
12
scr_depth
scr_depth

function
scr_depth(arg0 = id, arg1 = 0)
{ with (arg0) depth = 100000 - ((y * 10) + (sprite_height * 10) + (arg1 * 10)); }
();