What does this mean for me? You will always be able to play your favorite games on Kongregate. However, certain site features may suddenly stop working and leave you with a severely degraded experience.
What should I do? We strongly urge all our users to upgrade to modern browsers for a better experience and improved security.
We suggest you install the latest version of one of these browsers:
Kongregate is a community-driven browser games portal with an open platform for all web games.
Get your games in front of thousands of users while monetizing through ads and virtual goods.
Learn more »
I have a point in a movieclip that is set to (22,5), so if the movieclip rotated around its centre 90 degrees, the point would then be at (-5,22). During the game; the movieclip rotates around to the position of the mouse, and I need to know the exact location of that point at all times. Of course tracing its coordinates gives me (22,5) every time, no matter how the parent movieclip is rotated.
I know the trigonemtry I could use:
`xOffset = Math.sin(rotation*(Math.PI/180))*distance;
yOffset = Math.cos(rotation*(Math.PI/180))*distance;`
But from what I understand, that would only work if the point was aligned to an axis along the centre of rotation, like (22,0) or (0,5).
Can anyone help me?
> *Originally posted by **[BigJM](/forums/4/topics/311855#posts-6584590):***
> You could also use localToGlobal I think. I don’t know if it accounts for rotation.
it accounts for everything, but it’s far slower than straight trig