How to constrain an actor's certain position to another actor's specific position.
GSlostsoul
Member Posts: 22
Hi, I tried searching & can't really find any clue to go about this. I'm trying to make a body of a man. How to attach arm on the left shoulder & right shoulder? Thank U
Comments
I made this exactly the kind of thing you are trying to do . . .
http://forums.gamesalad.com/discussion/62202/linkmachine
Hopefully it's some help.
actors A and B
make 2 game attributes: Ax and Ay, and constrain them to A's x and y;
then behavior: constrain B's self position x and y to Ax and Ay
then B's position(x,y) will be constrained to A's postion.
if you wanna make a body following a head, you can try to change the value of x and y of B being constrained (like you can constrain B's y to be A's y- 5, since body is always under head)