Most efficient way to constrain 9 actors to constantly shifting X & Y coordinates...

jorkosjorkos Member, PRO Posts: 353
Hey guys, I have a new game coming where the player first creates their character selecting the body parts from 9 categories. Screenshot below. The mix of the choices produces the look of the character (eyes, ears, etc.).

In the game, in order to use the custom character I use 9 different actors representing each earlier choice that sit on top of each other. My question, because I want the character to move around, what is the most code efficient way to constrain the position of all actors to one set of shifting X & Y real points. Thoughts? Ideas? Is there a way for me to snap some actors to other actors somehow?

Thanks

Comments

  • SocksSocks London, UK.Member Posts: 12,822
    I made this . . .

    http://forums.gamesalad.com/discussion/62202/linkmachine

    . . . for exactly this kind of thing, but I think 18 constrains might start to get a little cumbersome ?

    Will the actor be rotating or will it always be upright (so you only need to constrain X and Y positions) ?
  • SocksSocks London, UK.Member Posts: 12,822
    Otherwise . . . Just make two game level attributes, Master X and Master Y, and constrain everything to them.
  • jorkosjorkos Member, PRO Posts: 353
    I'm not going to rotate the actor so yes I could simply constrain to a global X & Y....i'm just wondering if there is a more efficient thing to do or is that the most efficient. Thanks for your help - that linking project looks really cool. Thanks
Sign In or Register to comment.