Class cc.ProgressTo
- Defined in: CCActionProgressTimer.js
- Extends cc.ActionInterval
Constructor Attributes | Constructor Name and Description |
---|---|
Progress to percentage
|
Method Summary
Class Detail
cc.ProgressTo()
Progress to percentage
Method Detail
-
Creates and initializes with a duration and a percent
// example var to = cc.ProgressTo.create(2, 100);
- Parameters:
- {Number} duration
- duration in seconds
- {Number} percent
- Returns:
- {cc.ProgressTo}
-
{Boolean} initWithDuration(duration, percent)Initializes with a duration and a percent
- Parameters:
- {Number} duration
- duration in seconds
- {Number} percent
- Returns:
- {Boolean}
-
startWithTarget(target)
- Parameters:
- {cc.Node} target
-
update(time)
- Parameters:
- {Number} time
- time in seconds