Difference between revisions of "love.timer.step"
m |
m (0.11.0 variant (returns deltaT)) |
||
Line 10: | Line 10: | ||
=== Returns === | === Returns === | ||
Nothing. | Nothing. | ||
+ | == Function == | ||
+ | {{newin|[[0.11.0]]|110|type=variant}} | ||
+ | === Synopsis === | ||
+ | <source lang="lua"> | ||
+ | dt = love.timer.step( ) | ||
+ | </source> | ||
+ | === Arguments === | ||
+ | None. | ||
+ | === Returns === | ||
+ | {{param|number|dt|The time passed (in seconds).}} | ||
== See Also == | == See Also == | ||
* [[parent::love.timer]] | * [[parent::love.timer]] |
Revision as of 12:36, 17 January 2018
Measures the time between two frames. Calling this changes the return value of love.timer.getDelta.
Contents
Function
Synopsis
love.timer.step( )
Arguments
None.
Returns
Nothing.
Function
Available since LÖVE 0.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
Dansk –
Deutsch –
English –
Español –
Français –
Indonesia –
Italiano –
Lietuviškai –
Magyar –
Nederlands –
Polski –
Português –
Română –
Slovenský –
Suomi –
Svenska –
Türkçe –
Česky –
Ελληνικά –
Български –
Русский –
Српски –
Українська –
עברית –
ไทย –
日本語 –
正體中文 –
简体中文 –
Tiếng Việt –
한국어
More info