Deltarune (Chapter 2) script viewer

← back to main script listing

gml_Object_obj_defeatanim_Draw_0

(view raw script w/o annotations or w/e)
1
if (t == 0)
2
    draw_self();
3
sweat = 0;
4
if (g <= 5)
5
    sweat = 1;
6
if (g >= 9 && g <= 13)
7
    sweat = 1;
8
if (sweat == 1)
9
    draw_sprite(spr_defeatsweat, 0, x - 6, y - 6);
10
if (t >= 1)
11
{
12
    for (i = 0; i <= 80; i += 1)
13
    {
14
        alph = 0.4;
15
        draw_sprite_ext(sprite_index, image_index, x + (4 * i), y, image_xscale, image_yscale, 0, image_blend, (alph - (t / 8)) + (i / 200));
16
    }
17
    if (t >= 15)
18
        instance_destroy();
19
}