Quote
turret.addEventListener(Event.ENTER_FRAME, rotateTurret);
function rotateTurret(event:Event):void {
angle = Math.atan2(mouseY-Be_mc.y, mouseX-Be_mc.x);
angle *= radiansToDegrees;
Be_mc.rotation =(angle*–1) +90;
}
}
function rotateTurret(event:Event):void {
angle = Math.atan2(mouseY-Be_mc.y, mouseX-Be_mc.x);
angle *= radiansToDegrees;
Be_mc.rotation =(angle*–1) +90;
}
}
i have a syntax error. can anybody help?