Hello,
I'm working on a flash game as an introduction to a client website, and I was hoping the kind people on this forum could help me with a little problem I'm having.
What I have now is a little creature that walks back and forth across the screen. What I am trying to do is create a b2CircleDef behind his head, and not the center of the MovieClip. When I do it now it shows in the middle of his body (and also half of the movieclip is hidden below the window because of the circle's gravity); the goal is that someone can pick him up by the head wherever he is on stage while he is walking.
So I guess my main concern right now is how can I make a b2CircleDef stop at a certain x coordinate, and how can I position a b2CircleDef's x and y coordinates so they are located behind the movieclip's head instead of the movieclip's center.
Can someone please help me? Offering anything would be greatly appreciated. I'm not looking for someone to write the code, I'm just looking for a push in the right direction.
Thank you 😀
I'm working on a flash game as an introduction to a client website, and I was hoping the kind people on this forum could help me with a little problem I'm having.
What I have now is a little creature that walks back and forth across the screen. What I am trying to do is create a b2CircleDef behind his head, and not the center of the MovieClip. When I do it now it shows in the middle of his body (and also half of the movieclip is hidden below the window because of the circle's gravity); the goal is that someone can pick him up by the head wherever he is on stage while he is walking.
So I guess my main concern right now is how can I make a b2CircleDef stop at a certain x coordinate, and how can I position a b2CircleDef's x and y coordinates so they are located behind the movieclip's head instead of the movieclip's center.
Can someone please help me? Offering anything would be greatly appreciated. I'm not looking for someone to write the code, I'm just looking for a push in the right direction.
Thank you 😀