C
C#13mo ago
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); }
1 Reply
Accord
Accord13mo ago
Looks like nothing has happened here. I will mark this as stale and this post will be archived until there is new activity.