El único cambio fue, BORRAR del draw_line, todos los "centro_x" y sus respectivos "+" así como lo tienes tú, el código quedó así:
[gml]///dbujar path
for(var i = 0; i < path_get_number(path); i++){
px_1 = path_get_point_x(path, i);
py_1 = path_get_point_y(path, i);
px_2 = path_get_point_x(path, i + 1);
py_2 = path_get_point_y(path, i + 1)
if px_2 != 0
draw_line_width(px_1, centro_y + py_1, px_2, centro_y + py_2, ancho_linea);
}
draw_self();[/gml]
y hay dos errores
1- dibuja el path incompleto
2- la cuchilla sigue el path pero sigue yendo por la derecha..
imagen orientativa:
[gml]///dbujar path
for(var i = 0; i < path_get_number(path); i++){
px_1 = path_get_point_x(path, i);
py_1 = path_get_point_y(path, i);
px_2 = path_get_point_x(path, i + 1);
py_2 = path_get_point_y(path, i + 1)
if px_2 != 0
draw_line_width(px_1, centro_y + py_1, px_2, centro_y + py_2, ancho_linea);
}
draw_self();[/gml]
y hay dos errores
1- dibuja el path incompleto
2- la cuchilla sigue el path pero sigue yendo por la derecha..
imagen orientativa:
