Does anyone know how to make the player idle facing to the last direction theyre going

Godot Version

4.2.7

Can someone help me on how make the idle differet depending the direction the character facing after moving? (I already have the different animation, but i cant implemented it)

We don’t know how your player code is written. Please post the relevant code and node structure.

Can you make an idle anim for each direction?