How to combine animations?

In a side-view game, the player character can face to the left or right with a single press of either the left or right key. There are animations to turn from facing left to facing right (180 degree turn animations). Let’s say each animation takes 1 second.

The issue arises when the player has turned from left to right, and then turns to face left again at 75% through the first animation. How can the first animation be stopped and the second animation be played starting from the correct time of 25%?

If the player keeps tapping the left and right keys in quick succession the animations should keep switching.

It’s been a while since I’ve done this with UE but to help you find an answer if you haven’t yet from what I remember you need to either check out “Flipbook animating” if you’re using the lo fi sprite style characters or “Blend Spaces” and “Animation Blueprints” if you’re using 3d characters. When I did this I always started with a template and if the right combination of camera and character movement check boxes were ticked it just animated correctly (With a 3d character…) If you’re looking for the paper 2d style then look for tutorials on Flipbook animating… I think that was what it’s called.

There’s a lot on Youtube if you have access and a little patience for a vid or two but start with the terms I mentioned…

Good luck!