Deltarune (Chapter 2) script viewer

← back to main script listing

gml_Object_obj_thrash_laserbullet_old_Draw_0

(view raw script w/o annotations or w/e)
1
if (nextpoint > finalpoint)
2
{
3
    laserwidth -= 2;
4
    if (laserwidth <= 0)
5
        instance_destroy();
6
}
7
for (i = 1; i < nextpoint; i++)
8
    draw_line_width(points[i - 1][0], points[i - 1][1], points[i][0], points[i][1], laserwidth);
9
draw_line_width(x, y, points[nextpoint - 1][0], points[nextpoint - 1][1], laserwidth);