Difference between revisions of "love.timer.step"

m (0.11.0 variant (returns deltaT))
m (0.11.0 -> 11.0)
Line 11: Line 11:
 
Nothing.
 
Nothing.
 
== Function ==
 
== Function ==
{{newin|[[0.11.0]]|110|type=variant}}
+
{{newin|[[11.0]]|110|type=variant}}
 
=== Synopsis ===
 
=== Synopsis ===
 
<source lang="lua">
 
<source lang="lua">

Revision as of 14:17, 22 December 2018

Measures the time between two frames. Calling this changes the return value of love.timer.getDelta.

Function

Synopsis

love.timer.step( )

Arguments

None.

Returns

Nothing.

Function

Available since LÖVE 11.0
This variant is not supported in earlier versions.

Synopsis

dt = love.timer.step( )

Arguments

None.

Returns

number dt
The time passed (in seconds).

See Also


Other Languages