all groups > flash actionscript > may 2004 >
You're in the

flash actionscript

group:

animation problem


animation problem Vincent is Schattig
5/1/2004 10:42:48 PM
flash actionscript:
I want to make an arm (upper- and lowerarm). If the upperarm moves, the lower
arm must move with it. If the lower arm rotates, the turning point must be on
the point it is atached to the upperarm. Just like a real person only then in
Flash, so the different bodyparts must be connected in some way. How can I
achieve this?

Can you help me please?
Re: animation problem Jan-Paul K.
5/2/2004 8:56:32 AM
Hi Vince,

you have to use AS of cours. My suggested approach for this would be to
convert the upperarm in a movieclip as well as the lowerarm. Then write a AS
class that works as an event publisher and implement functions for publishing
an event whenever the lower- or upperarm is moved, so the new postion of the
other arm-part can be reaclulated and repositioned.

Regards,
Paul
Re: animation problem rlc5611
5/2/2004 9:50:48 AM
It will probably be easier to code if you edit the movie clips so that the
registration points are at the elbow in each case. You could then do a simple
x,y translation on each clip as well as rotation. If the registration points
are not at the elbow, it will be a lot more complicated. In older versions of
Flash you could change the reg point with Modify Transform menu. I think with
MX that went away so you have to edit the clip and move things around until the
elbow lines up with the crosshair reg point of the movie clip.
Re: animation problem Vincent is Schattig
5/4/2004 9:12:52 AM
AddThis Social Bookmark Button