Deltarune script viewer

← back to main script listing

gml_Object_obj_holemouse_block_counterclockwise_Draw_0

(view raw script w/o annotations or w/e)
1
draw_self();
2
if (flash == 1)
3
{
4
    if (flashtimer == 0)
5
        flashalpha = 1;
6
    flashtimer++;
7
    if (flashtimer > 6)
8
    {
9
        flashalpha *= 0.9;
10
        if (flashalpha < 0.01)
11
        {
12
            flash = 0;
13
            flashtimer = 0;
14
        }
15
    }
16
    draw_sprite_ext(sprite_index, 1, x, y, image_xscale, image_yscale, image_angle, image_blend, flashalpha);
17
}