2D Game Fliping Player problem
When I want to change the players X Scale then my player turns around weird... see image X = 0.5 : http://prntscr.com/nx875f X = -0.5 http://prntscr.com/nx87a1
My flipping Code is :
if (facingRight == false && moveInput > 0)
{
Flip();
}
else if (facingRight == true && moveInput < 0)
{
Flip();
}
private void Flip() { facingRight = !facingRight; Vector3 Scaler = transform.localScale; Scaler.x *= -1; transform.localScale = Scaler; }
thank you for helping
Comment