How to make a movement for 2.5d game?
Hi, I'm a beginner programmmer and i'm trying to set up movement for the 3d player in a 2.5d game. I dont know if it is the correct way, but i need the player turn left and right more smoothly. Could someone help me with this code?
The script i currently have looks like this:
void Move() { float move = Input.GetAxis("Horizontal"); anim.SetFloat("Speed", Mathf.Abs(move));
if (move > 0)
{
transform.eulerAngles = new Vector2(0,0);
}
if (move < 0)
{
transform.eulerAngles = new Vector2(0,180);
}
}
Comment