Deltarune (Chapter 3) script viewer

← back to main script listing

gml_Object_obj_roaringknight_quickslash_big_Draw_0

(view raw script w/o annotations or w/e)
1
if (slash)
2
    draw_self();
3
if (playerstrike == 1)
4
{
5
    with (obj_heart)
6
    {
7
        var _xx = irandom(2) - 1;
8
        var _yy = irandom(2) - 1;
9
        var _fade = remap_clamped(45, 55, 1, 0, other.timer);
10
        draw_sprite(sprite_index, image_index, x + _xx, y + _yy);
11
        draw_sprite_ext(spr_rk_slash_heartslice, other.cuty, x + _xx, y + _yy, 1, 1, 0, c_white, _fade);
12
    }
13
}