Hi guys,
I'm having a problem trying to work this out, i have got my script working to roate a movieclip with my mouse...
Actionscript Code:
function spinArrow(e:TimerEvent):void {
var angle = 180 * Math.atan2((mouseY - theArrow.y),(mouseX - theArrow.x)) / Math.PI;
theArrow.rotation = angle + 90;
trace(theArrow.rotation)
}
As you rotate the arrow, it will trace out the current angle.
What i want though - as the arrow goes past 360, to then show 370, and just keep going -- showing the degrees it has turned.
So if you keep spinning it clockwise, the number just keeps going up - and up.
Can anyone help please???
Thankyou!!