I can't get my character's running animation to play to the left

So I’ve gotten my character to be able to use the run animation when moving, but there’s a problem. When he runs forward he looks normal, because I made the animations facing forward, but when I try to run backwards he doesn’t turn around, he just does he same running animation and it looks like he’s moonwalking. I heard there was a way to turn him around whenever he runs backwards so that all of his movement and attack animations face that way, but I don’t know how to do that. How do I get him to turn around whenever he runs to the left? The player camera is to the right of the character in this one, like the mario games.