Class cc.Speed

Class Summary
Constructor Attributes Constructor Name and Description
 
Changes the speed of an action, making it take longer (speed>1) or less (speed<1) time.

Method Summary

Class Detail

cc.Speed()
Changes the speed of an action, making it take longer (speed>1) or less (speed<1) time.
Useful to simulate 'slow motion' or 'fast forward' effect.

Method Detail

  • {cc.Speed} clone()
    returns a clone of action
    Returns:
    {cc.Speed}
  • <static> {cc.Speed} cc.Speed.create(action, speed)
    creates the action
    Parameters:
    {cc.ActionInterval} action
    {Number} speed
    Returns:
    {cc.Speed}
  • {cc.ActionInterval} getInnerAction()
    Returns:
    {cc.ActionInterval}
  • {Number} getSpeed()
    Returns:
    {Number}
  • {Boolean} initWithAction(action, speed)
    initializes the action
    Parameters:
    {cc.ActionInterval} action
    {Number} speed
    Returns:
    {Boolean}
  • {Boolean} isDone()
    Returns:
    {Boolean}
  • {cc.ActionInterval} reverse()
    Returns:
    {cc.ActionInterval}
  • setInnerAction(action)
    Parameters:
    {cc.ActionInterval} action
  • setSpeed(speed)
    alter the speed of the inner function in runtime
    Parameters:
    {Number} speed
  • startWithTarget(target)
    Parameters:
    {cc.Node} target
  • step(dt)
    Parameters:
    {Number} dt
  • stop()
    Stop the action