Difference between revisions of "love.timer.step"
m (1 revision: Importing from potato (again).) |
m (Added new feature template) |
||
(5 intermediate revisions by 5 users not shown) | |||
Line 1: | Line 1: | ||
− | |||
Measures the time between two frames. | Measures the time between two frames. | ||
Calling this changes the return value of [[love.timer.getDelta]]. | Calling this changes the return value of [[love.timer.getDelta]]. | ||
Line 5: | Line 4: | ||
=== Synopsis === | === Synopsis === | ||
<source lang="lua"> | <source lang="lua"> | ||
− | love.timer.step( ) | + | dt = love.timer.step( ) |
</source> | </source> | ||
=== Arguments === | === Arguments === | ||
None. | None. | ||
=== Returns === | === Returns === | ||
− | + | {{New_feature|11.0| | |
+ | {{param|number|dt|The time passed (in seconds).}} }} | ||
== See Also == | == See Also == | ||
* [[parent::love.timer]] | * [[parent::love.timer]] | ||
+ | * [[love.run]] | ||
[[Category:Functions]] | [[Category:Functions]] | ||
− | {{#set:Description=Measures the time between two frames. | + | {{#set:Description=Measures the time between two frames.}} |
− | }} | + | {{#set:Since=000}} |
+ | == Other Languages == | ||
+ | {{i18n|love.timer.step}} |
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
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