Timer.new

From GiderosMobile
Revision as of 14:31, 13 July 2023 by Hgy29 (talk | contribs) (Text replacement - "<source" to "<syntaxhighlight")


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.