Class cc.EaseRateAction
Extends
cc.ActionEase.
Defined in: CCActionEase.js.
Constructor Attributes | Constructor Name and Description |
---|---|
Base class for Easing actions with rate parameters
|
Method Attributes | Method Name and Description |
---|---|
<static> |
cc.EaseRateAction.create(action, rate)
Creates the action with the inner action and the rate parameter
|
getRate()
get rate value for the actions
|
|
initWithAction(action, rate)
Initializes the action with the inner action and the rate parameter
|
|
reverse()
|
|
setRate(rate)
set rate value for the actions
|
- Methods borrowed from class cc.ActionEase:
- startWithTarget, stop, update
- Methods borrowed from class cc.ActionInterval:
- getAmplitudeRate, getElapsed, initWithDuration, isDone, setAmplitudeRate, step
- Methods borrowed from class cc.FiniteTimeAction:
- getDuration, setDuration
- Methods borrowed from class cc.Action:
- copy, copyWithZone, description, getOriginalTarget, getTag, getTarget, release, retain, setOriginalTarget, setTag, setTarget
Method Detail
<static>
{cc.EaseRateAction}
cc.EaseRateAction.create(action, rate)
Creates the action with the inner action and the rate parameter
// example var moveEaseRateAction = cc.EaseRateAction.create(action, 3.0);
- Parameters:
- {cc.ActionInterval} action
- {Number} rate
- Returns:
- {cc.EaseRateAction}
{Number}
getRate()
get rate value for the actions
- Returns:
- {Number}
{Boolean}
initWithAction(action, rate)
Initializes the action with the inner action and the rate parameter
- Parameters:
- {cc.ActionInterval} action
- {Number} rate
- Returns:
- {Boolean}
{cc.ActionInterval}
reverse()
- Returns:
- {cc.ActionInterval}
setRate(rate)
set rate value for the actions
- Parameters:
- {Number} rate