Deltarune (Chapter 1) script viewer

← back to main script listing

gml_Object_PROCESS_DOG_Step_0

(view raw script w/o annotations or w/e)
1
buffer++;
2
if (buffer < 60)
3
    exit;
4
if (button1_p() && !start_timer)
5
{
6
    fadeout = instance_create(0, 0, obj_fadeout);
7
    with (fadeout)
8
        fadespeed = 0.02;
9
    start_timer = true;
10
}
11
if (start_timer)
12
{
13
    snd_free_all();
14
    restart_timer++;
15
}
16
if (restart_timer == 200)
17
    game_restart();