• Editor
  • Immediate Animation transitions

I have seen the code for setting the transitions using mix:

	
[animationNode setMixFrom:@"walk" to:@"jump" duration:0.2f];
[animationNode setMixFrom:@"jump" to:@"walk" duration:0.4f];

But it seems to finish the animation of walking before moving to the jump animation.... therefore when I hit a "jump" button it has a delay. Even if I set the duration to a really low value, same effect.

What is the best practice for making this transition quicker? Stop the walk animation then set the jump animation?

Thanks!

Related Discussions
...

If you don't want mixing, don't set a mixing between animations and they will change immediately. If you set it very low it should be that much faster. The mix will always take at least one frame if set.