Rotate Blocks by group

Hello i've been lurking around gamesalad's forums and have not found anything yet, i have a single actor 50x50 height and width and i group them together to form a big block now what i want to do is when i press a key or a button the group of blocks rotate 90 degrees as if it has 1 big block. below is a screen shot i want you to look at so you can imagine what i'm trying to do.

image

so far i did the following and failed
-
created a big square actor and constrain the small blocks to the big square actor, but when i rotate it the big square block seems to rotate but the constrained small red blocks dont rotate at all.

-i have tried tshirt boots orbit tutorial but also failed to accomplish.

Thank you in advance, looking forward to a good and working answer. id also pay a small amount if needed i just need to make this work.

Comments

  • SocksSocks London, UK.Member Posts: 12,822
    Let me have a go . . . I will be back . . .
  • SocksSocks London, UK.Member Posts: 12,822
    I've got something working - or near enough . . . . . then I thought to myself, why not just set up what you want and then rotate the camera, saves dozes of constrains.
  • SocksSocks London, UK.Member Posts: 12,822
    edited February 2013
    OK, got it working, the maths structure simple, but the numbers are little fiendish . . .

    Here's the basic structure, you can work out the missing positions from the numbers already in place:

    http://www.mediafire.com/?xgpg733jsqs5hx5

    I still think you might be better off simply rotating the camera, but as you can see it is possible to rotate the blocks like you indicate in your post.

    P.S this kind of thing would be trivial with parenting/grouping - be great to see something like that appear in GameSalad one day - it would be insanely useful.
  • saitaoslasaitaosla PRO Posts: 18
    thank you very much i will try it when i reach home, also i have already tried the camera rotation but if i do that the game's concept will not work anymore thats why i need the group of blocks to rotate all together instead of the camera.
  • SocksSocks London, UK.Member Posts: 12,822
    thank you very much i will try it when i reach home, also i have already tried the camera rotation but if i do that the game's concept will not work anymore thats why i need the group of blocks to rotate all together instead of the camera.
    Fair enough, but in theory you wouldn't know the camera is rotating - as any HUD (fixed) elements would rotate with the camera, so for instance your score would remain static on the screen along with your buttons and whatever else you wanted to remain static and only the red block would rotate . . . . . but then again perhaps you've got a different set up?

  • saitaoslasaitaosla PRO Posts: 18
    hey i was able to see the template you created socks, it'll be hard to recreate boxes with different maths, would you be so kind to show me the camera rotation using statics.
  • saitaoslasaitaosla PRO Posts: 18
    I almost got it to work, the problem is when i rotate the camera everything else rotates too is there a way like you posted above make the other actors stay the same?
  • saitaoslasaitaosla PRO Posts: 18
    Bump*
Sign In or Register to comment.