Calculate the angle

Blitz3D Forums/Blitz3D Programming/Calculate the angle

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.

You would use Atan2():
angle#=Atan2(Mousey()-240,MouseX()-320)

Try switching the variables if you don't get the right angles.