2D Unity - 88. Movement & Time.deltaTime

In this Lecture of the 2D Unity course, Rick showed us how we could use Time.deltaTime to make our game framerate independent. But on Unity Scripting API, it says " Input.GetAxis is frame-rate independent; you do not need to be concerned about varying frame-rates when using this value." So why do we still need to use Time.deltaTime to make our game framerate independent? So I suppose that the Time.deltaTime in the following code is redundant.

var deltaX = Input.GetAxis("Horizontal") * Time.deltaTime * moveSpeed;

Hi Tim,

Which version of Unity do you use?

I would say: Test the line of code without Time.deltaTime.

Unity4.17. I think this is the latest version. I tested it and it worked. So I guess with the new version, Time.deltaTime is not needed?

I’m afraid, there is no Unity 4.17. The latest Unity 4 version is Unity 4.7.2, which was released on 31 May, 2016.

Did you test the line without Time.deltaTime? If your player moves smoothly, you don’t need Time.deltaTime.