You are not logged in.
/// draw_line_dotted_width(x1, y1, x2, y2, w)
/// GMLscripts.com/license
var x1 = argument0, y1 = argument1, x2 = argument2, y2 = argument3, w = argument4;
var dist = point_distance(x1, y1, x2, y2) * 0.05; //Random factor to scale it to an appropriate length
for (var i = 0; i < dist; i++) {
xx[i] = x1 + (x2 - x1) * (i / dist);
yy[i] = y1 + (y2 - y1) * (i / dist);
}
for (var i = 0; i < dist - 1; i += 2) {
draw_line_width(xx[i], yy[i], xx[i+1], yy[i+1], w);
}
Offline
draw_line_dotted_width(5,5,100,30, 1); - draw two lines for me, so for sure it's not "dotted" line.
Also xx and yy variables should be predefined with "var" keyword, so they wont affect object variables.
Offline