Timer.new: Difference between revisions
From GiderosMobile
m Text replacement - "<source" to "<syntaxhighlight" |
m Text replacement - "</source>" to "</syntaxhighlight>" |
||
| Line 9: | Line 9: | ||
<syntaxhighlight lang="lua"> | <syntaxhighlight lang="lua"> | ||
Timer.new(delay,repeatCount) | Timer.new(delay,repeatCount) | ||
</ | </syntaxhighlight> | ||
=== <translate>Parameters</translate> === | === <translate>Parameters</translate> === | ||
'''delay''': (any) <translate>The time interval between timer events in milliseconds.</translate> <br/> | '''delay''': (any) <translate>The time interval between timer events in milliseconds.</translate> <br/> | ||
Revision as of 13:33, 13 July 2023
Available since: Gideros 2011.6
Class: Timer
Description
Creates a new Timer object with the specified delay and repeatCount states.
Timer.new(delay,repeatCount)
Parameters
delay: (any) The time interval between timer events in milliseconds.
repeatCount: The number of repetitions. A value of 0 runs the timer infinitely. If nonzero, the timer runs the specified number of times and then stops.