Deltarune (Chapter 3) 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
scr_depth
scr_depth

function
scr_depth()
{ if (argument_count > 0) { with (argument0) depth = 100000 - ((y * 10) + (sprite_height * 10)); } else { depth = 100000 - ((y * 10) + (sprite_height * 10)); } }
();
2
dk = -4;
3
panel_sprite = 2925;
4
panel_alpha = 0;
5
panel_rot = -45;
6
panel_x = 191;
7
panel_y = 1128;
8
panel_fall = false;
9
panel_fall_timer = 0;
10
if (global.chapter == 3 && global.plot < 340)
11
{
12
    if (!snd_is_playing(global.currentsong[1]))
13
    {
14
        global.currentsong[0] = snd_init("mus_birdnoise.ogg");
15
        global.currentsong[1] = mus_loop_ext(global.currentsong[0], 1, 1);
16
    }
17
    dk = snd_loop(snd_smile);
18
    snd_volume(dk, 0, 0);
19
    snd_pitch(dk, 0.15);
20
}