My aiming math is wrong :S

BlitzMax Forums/BlitzMax Beginners Area/My aiming math is wrong :S

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.

my bad, I was reading how the atan2 was assigned. But you had it sort of correct the first time with the x and y. but not all right try this:
Function DegreesBetweenPoints:Float(X1:Float,Y1:Float,X2:Float,Y2:Float)
  Return ATan2( (X2 - X1) , (Y2 - Y1) ) 
End Function