Phaser API Documentation

  Version: 
getRepeatCount()

Description:

Returns the number of times this Timer Event will repeat before finishing.

This should not be confused with the number of times the Timer Event will fire before finishing. A return value of 0 doesn't indicate that the Timer Event has finished running - it indicates that it will not repeat after the next time it fires.

Returns:
Description:

How many times the Timer Event will repeat.

Type:
  • number
Since: 3.0.0
Source: src/time/TimerEvent.js (Line 230)