Animation Logic - Idle Based on Direction Facing

Hi!

I have a character that can walk, run, and jump, and he’s all animated using flipbooks but I’m struggling with the animation logic. All actions animate fine, except for when he goes idle. I’d like him to go idle based on the direction he was last moving, but he always goes back to the default “idle down”.

Example: he’s moving up, stops, so goes into an idle up animation as opposed to flipping around and facing down (idle down).

It’s all in blueprints and using flipbooks.

Thanks!