SmellSter
❔ Unity Animations With Time.deltatime
So when I make animations in Unity I made all the animations so Idle, Run, Jump etc. I used time.deltatime to make it good for other computers and for mine too. And the animation works but the player doesn’t. Here’s a part of my code.
Local variable —> float speed = 5f;
if (Input.GetKey(KeyCode.D) || Input.GetKey(KeyCode.RightArrow))
{
transform.position = transform.position + new Vector3(speed * Time.deltatime, 0, 0);
}
2 replies