Ok, i give up.
I have a 2.5D Platformer, and all i need to know is how i make the character face the direction he is moving.
I know it should be a very simple thing, but i just don’t seem to be able to get it right
Im using a very simple moving script:
if(Input.GetButton("right"))
{
transform.position += transform.right *moveSpeed* Time.deltaTime;
}
if(Input.GetButton("left"))
{
transform.position += -transform.right *moveSpeed* Time.deltaTime;
}
if(Input.GetButton("jump"))
{
transform.position += transform.up *height* Time.deltaTime;
}
}