Mouse aim, image rotation?

BlitzMax Forums/BlitzMax Beginners Area/Mouse aim, image rotation?

Hey took a break from 3d stuff in bmax to learn the basics of bmax. I need some help what I would like to do is rotate an image according to the mouse moving from left to right (gun turret) then when I click the left mouse button send a bullet to that position I clicked..or the direction i clicked. I've tried everything I can think of and I know this should be easy so if anyone could give me an example or point me in the right direction id appreciate it.

these could help you
Code Archives and here