Here's some code:I hope it helps.Code:onClipEvent (enterFrame) { GotoX = Stage.width/2; GotoY = Stage.height/2; DifferenceX = _x-GotoX; DifferenceY = _y-GotoY; _rotation = -Math.atan2(DifferenceX, DifferenceY)/(Math.PI/180); }
|
Results 1 to 2 of 2
Threaded View
|
Click Here to Expand Forum to Full Width |