© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•3y ago•
1 reply
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);
}
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

❔ Unity deltaTime error
C#CC# / help
3y ago
❔ Time.deltatime doesn't works
C#CC# / help
4y ago
❔ ✅ Chess with unity
C#CC# / help
3y ago