Deltarune (Chapter 4) script viewer

← back to main script listing

gml_Object_obj_dw_rhythm_speakers_Create_0

(view raw script w/o annotations or w/e)
1
init = false;
2
audio_file = -4;
3
audio_volume = 0;
4
symbol = -4;
5
_base_x_pos = 0;
6
_base_y_pos = 0;
7
_speaker_x_scale = 2;
8
_speaker_y_scale = 2;
9
_speaker_anim = 0;
10
_speaker_anim_speed = 0;
11
_speaker_timer = 0;
12
scr_depth
scr_depth

function
scr_depth(arg0 = id, arg1 = 0)
{ with (arg0) depth = 100000 - ((y * 10) + (sprite_height * 10) + (arg1 * 10)); }
();
13
14
init = function(arg0)
15
{
16
    _base_x_pos = arg0.x;
17
    _base_y_pos = arg0.y;
18
};
19
20
init_song = function(arg0)
21
{
22
    audio_file = audio_play_sound(arg0, 50, 1);
23
    snd_volume(audio_file, audio_volume, 0);
24
    snd_pitch(audio_file, 0.5);
25
    init = true;
26
};
27
28
init_symbol = function(arg0)
29
{
30
    symbol = arg0;
31
};
32
33
fade_out = function()
34
{
35
    init = false;
36
    snd_volume(audio_file, 0, 30);
37
};
38
39
clean_up = function()
40
{
41
    init = false;
42
    snd_stop(audio_file);
43
};
44
45
buffer = -1;
46
procced = false;
47
speaker_con = 0;
48
bpm = 140;
49
beat_start = 0;