Jump to content

Gymzen

Members
  • Posts

    3
  • Joined

  • Last visited

Posts posted by Gymzen

  1. 1 hour ago, Bisoux said:
    
    /**
    *  Flip the player horizontaly
    **/
    public void FlipHorizontaly ()
    {
    	// Switch the way the player is labelled as facing.
    	facingRight = !facingRight;
    
    	// Multiply the player's x local scale by -1.
    	Vector3 theScale = transform.localScale;
    	theScale.x *= -1;
    	transform.localScale = theScale;
    }

    There you go :)

    Thanks Bisoux i appreciate the help but the thing is that i am using the Input.GetAxis("Horizontal") to move him around. Any idea how i would implement your theory into that?

  2. Hi

    I have problem when i try to rotate my animation in unity (when i try to flip over my character to 180 degrees so that he faces other direction) it just disappears and only a forearm is visible and that forarm is the most infront of the Z order. I use spriter essential and the latest unity and downloaded the Spriter2unitydx. Anyone that has the same issue here?

×
×
  • Create New...