Deltarune (Chapter 1) script viewer

← back to main script listing

gml_Object_obj_deathanim_Draw_0

(view raw script w/o annotations or w/e)
1
if (t == 0)
2
    draw_self();
3
if (t >= 1)
4
{
5
    for (i = 0; i <= xs; i += 1)
6
    {
7
        for (j = 0; j <= ys; j += 1)
8
            draw_sprite_part_ext(sprite_index, image_index, bl[i][j], bh[i][j], bsize, bsize, bx[i][j], y + (j * bsize * imgy), imgx, imgy, image_blend, 1 - (bspeed[i][j] / 12));
9
    }
10
    if (bspeed[0][ys] >= 12)
11
        instance_destroy();
12
}