Beginner Scripting: DeltaTime
I
n this weeks Coding Task it looked at the DeltaTime function. The term delta means the difference between two values. The DeltaTime is essentially the time between each update as the game is running. You can use this function to smooth out any movement happening within your game. The amount of time it takes to update a frame can vary and this can result in lagging. DeltaTime can give the change in seconds rather than in frames. This can help smoothen all movement when applied correctly.
The code is as follows
UsingDeltaTimes
Comments
Post a Comment