Deltarune (Chapter 3) script viewer

← back to main script listing

gml_Object_obj_board_event_eraser_Step_0

(view raw script w/o annotations or w/e)
1
timer++;
2
if (wavy == true)
3
    y += (sin(timer / 2) * wavyrate);
4
if (eraseall == true)
5
{
6
    for (var i = 0; i < array_length(drawarray); i++)
7
    {
8
        with (drawarray[i])
9
            instance_destroy();
10
    }
11
    array_resize(drawarray, 0);
12
    eraseall = false;
13
}
14
x = round(x / 2) * 2;
15
y = round(y / 2) * 2;