Simply drawing a float value

BlitzMax Forums/BlitzMax Beginners Area/Simply drawing a float value

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

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.