Mouse angles ***

Blitz3D Forums/Blitz3D Programming/Mouse angles ***

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, it's 2D? Ok, wait a minute...

ClsColor 0,30,0 
While Not KeyHit(1) 
 Cls 
 a#=ATan2(MouseX()-b\x, MouseY()-b\y) 
 Line b\x, b\y, b\x+Cos(a)*10, b\y+Sin(a)*10
 Oval b\x-5,b\y-5,10,10,True 
 Flip 
Wend 

Is that better?