While making this flying spaceship, I want the ship to rotate to my mouse, to do this, here is the basic code to do so….
var dx:Number = mouseX - x;
var dy:Number = mouseY - y;
var angle:Number = Math.atan2(dy, dx);
this.rotation = angle * 180 / Math.PI;
Application - Source
Please note this is straight out of the [...]



