image follow/rotate with mouse

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

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

SetRotation ATan2(MouseY(),MouseX())


thanks FlameDuck

kev