Make a new animation for left to right instead of foward animation

My character when moving left and right, does the running forward animation, as seen in the video: Obs Video - YouTube

How can I make it where it will execute a animation when moving left or right?
Thanks!

I think there is something called anim tree for that.

Ok thanks!

This is handled with things called Animation Editors and Animation Blueprints. These allow you to use things like Blendspaces, State Machines, Animgraphs, Montages, and all kinds of other stuff that involve animation and the logic tied to those animations. This is among the densest, most complex topics in UE4 in my opinion, but once you wrap your head around the basics you can achieve what you’re trying to do without too much trouble.