Class cc.ReverseTime

Class Summary
Constructor Attributes Constructor Name and Description
 
cc.ReverseTime(action)

Executes an action in reverse order, from time=duration to time=0

Method Summary

Class Detail

cc.ReverseTime(action)

Executes an action in reverse order, from time=duration to time=0

 var reverse = new cc.ReverseTime(this);
Parameters:
{cc.FiniteTimeAction} action

Field Detail

<static> {cc.ReverseTime} cc.ReverseTime.create
Please use cc.reverseTime instead. Executes an action in reverse order, from time=duration to time=0.
Deprecated:
since v3.0 please use cc.reverseTime instead.

Method Detail

  • {cc.ReverseTime} clone()
    returns a new clone of the action
    Returns:
    {cc.ReverseTime}
  • ctor(action)
    Constructor function, override it to extend the construction behavior, remember to call "this._super()" in the extended "ctor" function.
    Parameters:
    {cc.FiniteTimeAction} action
  • {Boolean} initWithAction(action)
    Parameters:
    {cc.FiniteTimeAction} action
    Returns:
    {Boolean}
  • {cc.ActionInterval} reverse()
    Returns a reversed action.
    Returns:
    {cc.ActionInterval}
  • startWithTarget(target)
    Start the action with target.
    Parameters:
    {cc.Node} target
  • stop()
    Stop the action
  • update(dt)
    Called once per frame. Time is the number of seconds of a frame interval.
    Parameters:
    {Number} dt
    time in seconds