Deltarune (Chapter 3) script viewer

← back to main script listing

gml_Object_obj_shadowman_sharpshoot_heart_Draw_0

(view raw script w/o annotations or w/e)
1
if (
scr_debug
scr_debug

function
scr_debug()
{ if (global.debug == 1) return 1; }
())
2
{
3
    draw_set_color(c_maroon);
4
    draw_line_width(x, y, xprevious, yprevious, 3);
5
}
6
for (var i = 0; i < 8; i++)
7
    draw_sprite_ext(sprite_index, image_index, lerp(previousXPrevious, x, i / 8), lerp(previousYPrevious, y, i / 8), image_xscale, image_yscale, 0, c_white, (0.1 + (i / 16)) * image_alpha);
8
previousXPrevious = xprevious;
9
previousYPrevious = yprevious;
10
draw_self();
11
if (i_ex(obj_tenna_lightemup_bullet))
12
{
13
    bullet = collision_line(x, y, xprevious, yprevious, obj_tenna_lightemup_bullet, true, true);
14
    if (bullet != -4)
15
        event_user(1);
16
}