~game programing standing animatons~

hello i need detailed help on makeing a charecter stand in the last direction he walked in(lke if he walked left i want him to play his standing animation on th left side, if he had walked to the right i want him to do his standing animation faceing right), in a 2d sidescrolling 3d game (im remakeing the game “super smash brothers 64” for practice for makeing my own game) if someone could tell me how to o this or point me to a tutorial that would be awsome :cool: