I have made a little flash script where an object is “rotating” around another, so that it is always pointing towards the object in the middle, you can try it here: http://dump.erikhk.net/files/golftest2.swf , and the src: [URL=“http://dump.erikhk.net/files/golftest2.fla”]http://dump.erikhk.net/files/golftest2.fla , but the object is lagging when moved through the -90 and 90 zone, how can I avoid that?
EDIT: It seems that I have invert two of the quadrants in a better way that I am doing, how can I do that in a good way?
EDIT2: Math.atan2(dx,dy) * (180/Math.PI) did the job, problem solved