Miscellany
public text v1 · immutablevar a = Math.atan2(FlxG.mouse.x -myfound.player.x, myfound.player.y - FlxG.mouse.y);
var aInt:int = Math.floor(a * 180 / Math.PI) - 90;
if (myfound.player.angle < aInt){
myfound.player.angularVelocity = 220;
}
if (myfound.player.angle > aInt){
myfound.player.angularVelocity = -240;
}