Pause animation at last frame

Hello everyone!

I want to connect several animations so that they play one after the other. The change is made in the onAnimCycleDone() method. My problem: After one animation circle is completed my model is set to its default (not animated) status and then the next animation begins. Because of that I have an ugly looking gap of one or two frames between the animations. Is there a way to pause the animation at the last frame so that the model does not jump back to its original position before the next animation begins?

Kind regards!

You can use the LoopMode.DontLoop:

http://hub.jmonkeyengine.org/javadoc/com/jme3/animation/LoopMode.html#DontLoop

I already tried that and it did not work :confused: But when it does what it should my mistake must have been somewhere else… I did it another way as I originally planned so I won’t try it now, but thank you anyway :slight_smile: