Deltarune (Chapter 2) script viewer

← back to main script listing

gml_Object_obj_bq_fist_flash_fast_Draw_0

(view raw script w/o annotations or w/e)
1
repeat (2)
2
{
3
    timer++;
4
    if (state == 0)
5
    {
6
        x1 -= 30;
7
        x2 += 30;
8
        if (timer > (20 / f))
9
            state = 2;
10
    }
11
    if (state == 1)
12
    {
13
        if (timer > (30 / f))
14
            state = 2;
15
    }
16
    if (state == 2)
17
    {
18
        y1 -= 0.5;
19
        y2 += 0.5;
20
        image_alpha -= 0.14;
21
        if (image_alpha < 0)
22
            instance_destroy();
23
    }
24
    draw_set_color(c_white);
25
    draw_set_alpha(image_alpha);
26
    draw_rectangle(x1, y1, x2, y2, false);
27
    draw_set_alpha(1);
28
}