Deltarune (Chapter 4) 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
    last_pause = trackpos;
5
    audio_pause_sound(track1_instance);
6
    audio_pause_sound(track2_instance);
7
    if (rem_mode)
8
        event_user(6);
9
    scroll_init = 1;
10
}
11
else
12
{
13
    audio_resume_sound(track1_instance);
14
    audio_resume_sound(track2_instance);
15
    with (obj_rhythmgame_editor_note_node)
16
        instance_destroy();
17
    if (instrument == 0)
18
    {
19
        if (oneAtATime)
20
            mus_volume(track1_instance, 0, 0);
21
        mus_volume(track2_instance, 1, 0);
22
    }
23
}