How could I make a movement like this?

So I wan´t to make a movement like the one from Soccer Random:


The player swing back and foward, like in the video, the player can also jump in the that direction.