Class cc.ProgressFromTo

Class Summary
Constructor Attributes Constructor Name and Description
 
cc.ProgressFromTo(duration, fromPercentage, toPercentage)
Progress from a percentage to another percentage

Method Summary

Class Detail

cc.ProgressFromTo(duration, fromPercentage, toPercentage)
Progress from a percentage to another percentage
 var fromTo = new cc.ProgressFromTo(2, 100.0, 0.0);
Parameters:
{Number} duration
duration in seconds
{Number} fromPercentage
{Number} toPercentage

Field Detail

<static> {cc.ProgressFromTo} cc.ProgressFromTo.create
Creates and initializes the action with a duration, a "from" percentage and a "to" percentage
Deprecated:
since v3.0,please use cc.ProgressFromTo(duration, fromPercentage, toPercentage) instead.

Method Detail

  • {cc.ProgressFromTo} clone()
    return a new cc.ProgressTo, all the configuration is the same as the original
    Returns:
    {cc.ProgressFromTo}
  • ctor(duration, fromPercentage, toPercentage)
    Creates and initializes the action with a duration, a "from" percentage and a "to" percentage Constructor of cc.ProgressFromTo
    Parameters:
    {Number} duration
    duration in seconds
    {Number} fromPercentage
    {Number} toPercentage
  • {Boolean} initWithDuration(duration, fromPercentage, toPercentage)
    Initializes the action with a duration, a "from" percentage and a "to" percentage
    Parameters:
    {Number} duration
    duration in seconds
    {Number} fromPercentage
    {Number} toPercentage
    Returns:
    {Boolean}
  • {cc.ActionInterval} reverse()
    Returns:
    {cc.ActionInterval}
  • startWithTarget(target)
    start with a target
    Parameters:
    {cc.Node} target
  • update(time)
    Parameters:
    {Number} time
    time in seconds