image follow/rotate with mouse

BlitzMax Forums/BlitzMax Beginners Area/image follow/rotate with mouse

Kev(Posted 2005) [#1]
Hi All

Im tying to make an image rotate in the direction of the mouse, 'think eyeball look in direction of mouse on screen' the position of the image will be constant but it should rotate and point at the mouse. the maths parts is the trouble.

any help please.
thanks
kev


FlameDuck(Posted 2005) [#2]
SetRotation ATan2(MouseY(),MouseX())



Kev(Posted 2005) [#3]
thanks FlameDuck

kev