A Conundrum a la Flash
- Started
- Last post
- 4 Responses
- fate
http://www.intentionallies.co.jp…
The fact that you can rotate a card based on the mouse position.......how? How do you just specific a rotation point? Is it lots and lots of math? or some hidden property?
- scarabin0
man, that's hot.
- fate0
*bump*
I figured out a method to do this without lots of math. You make an MC with another MC inside it. The point is to make the childMC change X and Y positions when the parentMC goes to whatever the mouse X and Y is. You make the childMC appear like it has not moved when in reality it has just moved the opposite direction of the parent.
since the parent dictates rotation, the child will then rotate at the new point
The only problem is, this only works BEFORE rotation since the position of the child is dependent on the mouse for x and y coordinates...but when you spin the child's container, it gets "disoriented" and the coordinates no longer match because the cartesian coordinate systems are not parallel.
argh!
- blackspade0
wish i could help
mind fuk™
- fate0
Yep, it's times like these I realize "I'm a geek"
Anyone have any other ideas for dynamically creating a rotation point?