- Home /
time.deltaTime making my game so slow
Hi, I'm making a 2D game and I have a speed variable that was set to 10. I then went into my code and wrote in * Time.delatTime in the movement section. Doing this made my speed extremely slow, so much so that I had to set the speed to 500 just to get the same results as before!!! Is this normal?
r2d.velocity = new Vector2((moveDirection) maxSpeed Time.deltaTime, r2d.velocity.y);
Answer by rhapen · Oct 28, 2020 at 09:37 PM
Time.deltaTime gives you the time in seconds since last update. E.g 60fps ~ 0.016, 30fps ~ 0.033.
so yeah, its normal when you compare the values with and without. The point is to have it done equally same speed every frame.
Your answer
Follow this Question
Related Questions
How to make AutoType-style text game speed independent? 0 Answers
Should you use Time.deltaTime in FixedUpdate()? 3 Answers
WheelCollider: Two Cars- Speed Problem 0 Answers
how do i make this to a negative (ShopRespawn < 180)? 1 Answer
Gameobject moving faster at higher framerates? Using Time.deltaTime 2 Answers