Oh, maybe my function is wrong then. It uses the mouse x and y in the calculation.
the following is my function:
Function point_angle#(x#,y#,x2#,y2#)
Local x_length#=x-x2
Local y_length#=y-y2
Local angle#=ATan(y_length/x_length)
Return angle
End Function
Perhaps using the mouse x and y values for the x2 and y2 are causing the error.
the following is my function:
Function point_angle#(x#,y#,x2#,y2#)
Local x_length#=x-x2
Local y_length#=y-y2
Local angle#=ATan(y_length/x_length)
Return angle
End Function
Perhaps using the mouse x and y values for the x2 and y2 are causing the error.