1 |
if (nextpoint > finalpoint) |
2 |
{ |
3 |
laserwidth -= 2 |
4 |
if (laserwidth <= 0) |
5 |
instance_destroy() |
6 |
} |
7 |
image_yscale = max(((laserwidth - 4) / 10), 0) |
8 |
var oldcolor = draw_get_color() |
9 |
draw_set_color(c_black) |
10 |
if (lasertimer > 0) |
11 |
draw_circle(x, y, (laserwidth + ((lasertimer % 4) > 1 ? 8 : 6)), 0) |
12 |
else |
13 |
draw_circle(x, y, (laserwidth / 2 + 2), 0) |
14 |
draw_circle(tailx, taily, (laserwidth / 2 + 2), 0) |
15 |
draw_line_width(x, y, tailx, taily, (laserwidth + 4)) |
16 |
draw_set_color(c_white) |
17 |
draw_line_width(x, y, tailx, taily, laserwidth) |
18 |
if (lasertimer > 0) |
19 |
draw_circle(x, y, (laserwidth + ((lasertimer % 4) > 1 ? 6 : 4)), 0) |
20 |
else |
21 |
draw_circle(x, y, (laserwidth / 2), 0) |
22 |
draw_circle(tailx, taily, (laserwidth / 2), 0) |
23 |
draw_set_color(oldcolor) |