1 | if (!i_ex(target)) |
2 | { |
3 | instance_destroy(); |
4 | exit; |
5 | } |
6 | if (laserflash == 0) |
7 | { |
8 | laserflash = 1; |
9 | draw_line_width_color(target.x + lengthdir_x(68, target.image_angle + 268), target.y + lengthdir_y(68, target.image_angle + 268), target.x + lengthdir_x(1000, target.image_angle + 268), target.y, 2, c_red, c_red); |
10 | } |
11 | else if (laserflash == 1) |
12 | { |
13 | laserflash = 0; |
14 | } |