How to flip 2d character walk movement?

I am working on a 2d platformer prototype and I am having trouble animating my player across the screen. He faces right when I press the right arrow key to move him. When I press the left key, he still faces right but moves in the opposite direction. I can’t seem to make him face to the left. His animations are very simple to make because he doesn’t have any legs. Is there a solution to this?

You can make the sprite flip to the left by changing the transform.localScale. They go over it in this live training session.

The new Unity Update allowes you do that without changing the transform.localScale.

Check here : Unity - Manual: Sprite Renderer

I’d rather use Euler Angles

  if (isRight == true && isLeft == false) {
        transform.eulerAngles = new Vector3(0, 0 ,0);
  }

  if (isRight == false && isLeft === true) {
        transform.eulerAngles = new Vector3(0, 180, 0);
  }

}