Class cc.Timer

Class Summary
Constructor Attributes Constructor Name and Description
 
Light weight timer

Method Summary

Class Detail

cc.Timer()
Light weight timer

Method Detail

  • ctor()
    cc.Timer's Constructor Constructor of cc.Timer
  • {Number} getInterval()
    Returns:
    {Number} returns interval of timer
  • setInterval(interval)
    Parameters:
    {Number} interval
    set interval in seconds
  • update(dt)
    triggers the timer
    Parameters:
    {Number} dt
    delta time