GRANDface Dev
Member
Hey guys,
Is it possible that draw_line() function draws the line by one pixel offset in each x, y coordinate? I tested it on a rotating object and drawing a line from the objects sprite origin.
The white pixel is the center for the rotation of the object and as you can see, the line doesn't start from the pixel.
Draw event code:
Step event code:
Thanks for the answers.
Is it possible that draw_line() function draws the line by one pixel offset in each x, y coordinate? I tested it on a rotating object and drawing a line from the objects sprite origin.
The white pixel is the center for the rotation of the object and as you can see, the line doesn't start from the pixel.
Draw event code:
GML:
draw_self();
draw_line(x, y, 100, y);
GML:
global.dir = point_direction(x, y, mouse_x, mouse_y);
image_angle = global.dir;