hehe, perfect coding except from you spelt current wrong :)
In function update_path
one of the currents is spelled curent :D
It's wee mistakes like that, that sometimes throw me off to :)
In function update_path
angle=ATan2(point_y(current_point+1)-point_y(current_point),point_x(curent_point+1)-point_x(current_point))
one of the currents is spelled curent :D
Function update_path() angle#=0 If current_point<id_counter ;*************************************** angle=ATan2(point_y(current_point+1)-point_y(current_point),point_x(curent_point+1)-point_x(current_point)); <<<**** current spelt wrong :) ;*************************************** pathx=pathx+Cos(angle) pathy=pathy+Sin(angle) Rect pathx-3,pathy-3,6,6 If Abs(pathx-point_x(current_point+1))<1 And Abs(pathy-point_y(current_point+1))<1 Then current_point=current_point+1; increase the current path point number pathx=point_x(current_point); set the rectangles coords to that of the next path point pathy=point_y(current_point) End If EndIf End Function
It's wee mistakes like that, that sometimes throw me off to :)