I've been struggling with this one and any help is appreciated.
I'm trying to create a puzzle game where there are pieces on a board/grid that are influenced by gravity(towards bottom of screen). I want to be able to rotate the board/grid (90 degs at a time) with all of the pieces maintaining their relative position. Once the board has stop rotating, the pieces should fall according to the gravity (still towards the bottom of the screen even though the board has rotated).
I have 2 issues:
1. Is there an easy way to rotate an object using the Rotate behavior until it reaches an exact angle? Since I am rotating 90 degs at a time, I need it to be precise. I think I created a good work around but it may also be causing my second issue.
2. I am pinning the pieces to the board when I rotate it, then unpinning them when they need to fall towards the bottom of the screen. However, I can not get the pieces to remain preciously where they should be relative to the rotating board as it rotates. They seem to always want to slip slightly to the left and this causes problems with alignment.
Here is a link: dropbox.com/s/yn3f2ce4ntwfr7s/Rotate_Pin_Unpin.capx
Let me know if you have any suggestions.