Deltarune (Chapter 3) script viewer

← back to main script listing

gml_Object_obj_fx_growsquare_Draw_0

(view raw script w/o annotations or w/e)
1
if (active == 1)
2
{
3
    alpha -= fadespeed;
4
    growth += growspeed;
5
    draw_set_alpha(alpha);
6
    draw_set_color(color);
7
    draw_rectangle(x - growth - 2, y - growth - 2, x + growth + 2, y + growth + 2, true);
8
    draw_set_alpha(1);
9
    if (alpha <= 0)
10
        instance_destroy();
11
}