Deltarune (Chapter 3) script viewer

← back to main script listing

gml_Object_obj_rhythmgame_editor_Other_12

(view raw script w/o annotations or w/e)
1
paused = !paused;
2
if (paused)
3
{
4
    audio_pause_sound(track1_instance);
5
    audio_pause_sound(track2_instance);
6
    if (rem_mode)
7
        event_user(6);
8
    scroll_init = 1;
9
}
10
else
11
{
12
    audio_resume_sound(track1_instance);
13
    audio_resume_sound(track2_instance);
14
    with (obj_rhythmgame_editor_note_node)
15
        instance_destroy();
16
    if (instrument == 0)
17
    {
18
        if (oneAtATime)
19
            mus_volume(track1_instance, 0, 0);
20
        mus_volume(track2_instance, 1, 0);
21
    }
22
}