Deltarune script viewer

← back to main script listing

gml_Object_obj_bq_fist_flash_Draw_0

(view raw script w/o annotations or w/e)
1
repeat rep
2
{
3
    timer++
4
    if (state == 0)
5
    {
6
        x1 -= 30
7
        x2 += 30
8
        if (timer > (20 / f))
9
            state = 1
10
    }
11
    if (state == 1)
12
    {
13
        if (timer > (40 / f))
14
            state = 2
15
    }
16
    if (state == 2)
17
    {
18
        y1 -= 1
19
        y2 += 1
20
        image_alpha -= 0.04
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
}