-
Help with animation
I have an object with 19 directions.Each direction has an animation sequence in it.When I click on it the first time,and change it's direction ,the animation sequence runs to the last frame and stops as it should.If I click on the object again it changes to another direction but the animation sequence for that direction does not run,it just goes to the last frame of that direction.How can I run the animations for each direction?The animation looped check box is not checked in the animation editor.
-
Re: Help with animation
There is some clever code to do with animation in MMF. If your object is running around a path or user controlled, the animation direction changes constantly. However, the animation does not return to frame 1 each time your animation changes direction. Instead it keeps the frame number from the previous direction. This gives you smooth animation.
If I recall correctly, this also applies when you change animation as well as changing direction. So it is important to have the same number of frames in each animation.
If you are using the directions to store completely different animations, you'll need to restore the animation frame each time you change direction. Depending on circumstances, you might need to drive each animation manually as well.