Platform Game - Getting the Object to adjust angle according to mouse position
<p>What I basically am going for is a platform game where you can advance through stages by getting past enemies and such. You will get different weapons as you advance and pick things up. I would like for these different weapons you pick up to be able to be pointed in the direction that the mouse is currently at.</p>

<p>Since it's a little hard to example it right I found a video that pretty much shows exactly what I want but with a different sprites used.
<a href="http://www.youtube.com/watch?v=8W7WSkQq5SU" rel="nofollow">http://www.youtube.com/watch?v=8W7WSkQq5SU</a></p>

<p>So lets say this is the image I would use for one of the weapons:
<img src="http://i.stack.imgur.com/DPVEy.png" alt="Pickaxe"></p>

<p>How would I go about adjusting it (pseudo code) to make the right point of the pickaxe be pointed in the same direction of the mouse? </p>

<p>I just looking for some pseudo code of how you may go about doing this the most efficient way and the smoothest way.</p>
