So, I am working on a game, and I am ready to add animations. My plan is to have a different animation play for each direction the player moves in. Like, in pseudocode, this:
if(player is moving left){
PlayAnimation(left);
}
And, to play no animation when the player isn’t moving.
I know how to make the actual animation, but as for the movement thing… Not really.
Any idea on how to execute this?