Class cc.EaseRateAction

Class Summary
Constructor Attributes Constructor Name and Description
 
cc.EaseRateAction(action, rate)
Base class for Easing actions with rate parameters

Method Summary

Class Detail

cc.EaseRateAction(action, rate)
Base class for Easing actions with rate parameters
//The old usage
cc.EaseRateAction.create(action, 3.0);
//The new usage
var moveEaseRateAction = cc.easeRateAction(action, 3.0);
Parameters:
{cc.ActionInterval} action
{Number} rate
since v3.0 please cc.easeRateAction(action, 3.0);

Field Detail

<static> {cc.EaseRateAction} cc.EaseRateAction.create
Please use cc.easeRateAction instead.
Creates the action with the inner action and the rate parameter.
//The old usage
cc.EaseRateAction.create(action, 3.0);
//The new usage
var moveEaseRateAction = cc.easeRateAction(action, 3.0);
Deprecated:
since v3.0 please use cc.easeRateAction(action, rate)

Method Detail

  • {cc.EaseRateAction} clone()
    to copy object with deep copy. returns a clone of action.
    Returns:
    {cc.EaseRateAction}
  • ctor(action, rate)
    Constructor function, override it to extend the construction behavior, remember to call "this._super()" in the extended "ctor" function.
    Creates the action with the inner action and the rate parameter.
    Parameters:
    {cc.ActionInterval} action
    {Number} rate
  • {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.EaseRateAction} reverse()
    Create new action to original operation effect opposite.
    For example:
    - The action will be x coordinates of 0 move to 100.
    - The reversed action will be x of 100 move to 0. - Will be rewritten
    Returns:
    {cc.EaseRateAction}
  • setRate(rate)
    set rate value for the actions
    Parameters:
    {Number} rate