Deltarune (Chapter 3) script viewer

← back to main script listing

gml_Object_obj_clearbullets_fx_Draw_0

(view raw script w/o annotations or w/e)
1
draw_sprite_ext(spr_whitepixel, 0, x, y, image_xscale, image_yscale, 0, c_white, image_alpha);
2
image_alpha -= 0.1;
3
if (image_alpha == 0.3)
4
{
5
    count--;
6
    if (count > 0)
7
    {
8
        if (con == 0 || con == 1)
9
        {
10
            fx = instance_create(x + 60, y, obj_clearbullets_fx);
11
            fx.count = count;
12
            fx.con = 1;
13
        }
14
        if (con == 0 || con == -1)
15
        {
16
            fx = instance_create(x - 60, y, obj_clearbullets_fx);
17
            fx.count = count;
18
            fx.con = -1;
19
        }
20
    }
21
}
22
if (image_alpha < 0.1)
23
    instance_destroy();