Playback of clip - Plays all animations.

Aug 24, 2009 at 9:54 PM
Edited Nov 7, 2009 at 3:15 PM

So, I have a number of animations exported, at different animation ranges. However, it seems when I use the method below, it starts playing on the correct frame, so it starts playing the "Run" clip, but it continues to play through the clips after as well. So, if I have exported Idle, Run, Jump, Shoot. It'll start at Run, play Jump and Shoot, and then go back to Run.

I would assume it should only play the Run animation..?

Game1.animationController.StartClip(Game1.skinnedModel.AnimationClips["Run"]);

 

If I had played "Idle" instead of "Run", all animations would be played. So, I just think I wonder if this is how it should be. And if so, what should I do to play a specific animaiton frame?

Btw, I export using the kw .x exporter. It seems to work fine except in the above example.

 

So, any hints? :) Thanks.

EDIT: This was my own silly mistake btw, I had mistaken animation length with animation End time. So, instead of setting up the animation like startframe:120, and length 30, I set length to 150.

 so yes, of course it would go through all the animations behind on the frame.

kjetil