I imported a walking animation from Mixamo and used it to create a blueprint building prop.
Then, I added it to a creature spawner.
However, the custom character walks forward but then snaps back to its original position, and keeps repeating this cycle.
How can I stop this from happening?
In my experience there are two main ways a walking animation can be made - one where the animation itself has NO forward movement (you need to move the character yourself to match the walking speed) or the second way where the walk animation moves the character forward.
It sounds like your anim moves the character forward - but that’s just the animation, not the actual character position. So when the anim stops, the player snaps back to their ‘real’ position.
I think to use that style of anim you’d have to move the character to the new position the instant the anim stops.
But I’m not sure, so far I’ve only worked with the other style - where the anim doesn’t change the characters position - in those cases I have to make sure my Verse code is moving the character at a rate matching the animation.
Hope it helps.
thank you for your opinion
Firstly, when exporting from Mixamo, if you choose “InPlace” down the bottom (and make sure it’s a looping animation) then it might be easier to use.
That said, I assume this particular animation is snapping back to it’s real position as per the earlier reply. Here is the documentation which explains exactly what causes that phenomenon:
^^
The jumping-forwards animation, in particular.
IIRC, In Root Motion: you can choose “Force Root Lock”… but there is also plenty of guidance in this linked article also.