Difference between revisions of "Timer.new"

From GiderosMobile
m (Text replacement - "<source" to "<syntaxhighlight")
Line 7: Line 7:
 
Creates a new [[Special:MyLanguage/Timer|Timer]] object with the specified delay and repeatCount states.<br />
 
Creates a new [[Special:MyLanguage/Timer|Timer]] object with the specified delay and repeatCount states.<br />
 
<br /></translate>
 
<br /></translate>
<source lang="lua">
+
<syntaxhighlight lang="lua">
 
  Timer.new(delay,repeatCount)
 
  Timer.new(delay,repeatCount)
 
</source>
 
</source>

Revision as of 15:31, 13 July 2023


Available since: Gideros 2011.6
Class: Timer

Description


Creates a new Timer object with the specified delay and repeatCount states.

<syntaxhighlight lang="lua">

Timer.new(delay,repeatCount)

</source>

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.