Difference between revisions of "Timer:setRepeatCount"

From GiderosMobile
m (Text replacement - "<source" to "<syntaxhighlight")
Line 7: Line 7:
 
Sets the number of repetitions the timer will make. A value of 0 means the timer runs infinitely. If nonzero, the timer runs the specified number of times and then stops.<br />
 
Sets the number of repetitions the timer will make. A value of 0 means the timer runs infinitely. If nonzero, the timer runs the specified number of times and then stops.<br />
 
<br /></translate>
 
<br /></translate>
<source lang="lua">
+
<syntaxhighlight lang="lua">
 
  Timer:setRepeatCount(repeatCount)
 
  Timer:setRepeatCount(repeatCount)
 
</source>
 
</source>

Revision as of 15:31, 13 July 2023


Available since: Gideros 2011.6
Class: Timer

Description


Sets the number of repetitions the timer will make. A value of 0 means the timer runs infinitely. If nonzero, the timer runs the specified number of times and then stops.

<syntaxhighlight lang="lua">

Timer:setRepeatCount(repeatCount)

</source>

Parameters

repeatCount: (number) the number of repetitions the timer will make