I have a game and in this game , i programed player can pick up an item for use , example "gun", "blade". But this is a trouble, I am thinking about this trouble because if i have many item in game , i must create many animation for character for using item. I want ask people have experience in game flash development about experience create animation optimize for game :) Thank
A:
There isn't much programming involved with this but here it goes:
You can create a single set of animations for your character which will play while he/she is holding the item. Then create separate sets of animations for the items that will correspond to your character animations.
For example you will have an animation of your character walking as if he/she was holding an object. To create an animation for the character walking while holding a gun, you should use the walking character animation, add the gun, animate the gun, then delete the character animation from the overall animation object.
This way then you add the gun animation to your character animation on the scene and call play on both, both will animate correctly.
Thyrius
2010-04-01 09:13:53