Difference between revisions of "love.timer.step"

m (0.11.0 -> 11.0)
m (Added new feature template)
 
Line 2: Line 2:
 
Calling this changes the return value of [[love.timer.getDelta]].
 
Calling this changes the return value of [[love.timer.getDelta]].
 
== Function ==
 
== Function ==
=== Synopsis ===
 
<source lang="lua">
 
love.timer.step( )
 
</source>
 
=== Arguments ===
 
None.
 
=== Returns ===
 
Nothing.
 
== Function ==
 
{{newin|[[11.0]]|110|type=variant}}
 
 
=== Synopsis ===
 
=== Synopsis ===
 
<source lang="lua">
 
<source lang="lua">
Line 19: Line 9:
 
None.
 
None.
 
=== Returns ===
 
=== Returns ===
{{param|number|dt|The time passed (in seconds).}}
+
{{New_feature|11.0|
 +
{{param|number|dt|The time passed (in seconds).}} }}
 
== See Also ==
 
== See Also ==
 
* [[parent::love.timer]]
 
* [[parent::love.timer]]

Latest revision as of 11:31, 3 January 2019

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

Function

Synopsis

dt = love.timer.step( )

Arguments

None.

Returns

Available since LÖVE 11.0
number dt
The time passed (in seconds).

See Also


Other Languages