Class cc.ProgressTo

Class Summary
Constructor Attributes Constructor Name and Description
 
cc.ProgressTo(duration, percent)
Progress to percentage

Method Summary

Class Detail

cc.ProgressTo(duration, percent)
Progress to percentage
var to = new cc.ProgressTo(2, 100);
Parameters:
{Number} duration
duration in seconds
{Number} percent

Field Detail

<static> {cc.ProgressTo} cc.ProgressTo.create
Please use cc.progressTo instead Creates and initializes with a duration and a percent
Deprecated:
since v3.0,please use cc.progressTo instead.

Method Detail

  • {cc.ProgressTo} clone()
    return a new cc.ProgressTo, all the configuration is the same as the original
    Returns:
    {cc.ProgressTo}
  • ctor(duration, percent)
    Creates a ProgressTo action with a duration and a percent Constructor of cc.ProgressTo
    Parameters:
    {Number} duration
    duration in seconds
    {Number} percent
  • {Boolean} initWithDuration(duration, percent)
    Initializes with a duration and a percent
    Parameters:
    {Number} duration
    duration in seconds
    {Number} percent
    Returns:
    {Boolean}
  • {null} reverse()
    reverse hasn't been supported
    Returns:
    {null}
  • startWithTarget(target)
    start with a target
    Parameters:
    {cc.Node} target
  • update(time)
    custom update
    Parameters:
    {Number} time
    time in seconds