You are not logged in.
Brief Description: draw_path - doesn't draw beyond 68 points
GM Versions: GM6, GM7
References: [1]
Example File: draw_path bug.gmk
Bug Confirmed: Yes
Hardware Dependent: No
Main Info:
When using the draw_path function it bugs and stops connecting the paths after 68 points. This is shown clearly in the example file.
Workaround:
You can replace the function with your own:
//draw_path(ind,x,y,absolute)
if (argument3)
{
var i;
for (i = 0; i < path_get_number(argument0)-1; i += 1)
{
draw_line(path_get_point_x(argument0,i),path_get_point_y(argument0,i),path_get_point_x(argument0,i+1),path_get_point_y(argument0,i+1));
}
}
else
{
var i, x_off, y_off;
x_off = argument1-path_get_point_x(argument0,0);
y_off = argument2-path_get_point_y(argument0,0);
for (i = 0; i < path_get_number(argument0)-1; i += 1)
{
draw_line(path_get_point_x(argument0,i)+x_off,path_get_point_y(argument0,i)+y_off,path_get_point_x(argument0,i+1)+x_off,path_get_point_y(argument0,i+1)+y_off);
}
}
Last edited by flexaplex (2009-07-06 09:41:26)
Offline