Class cc.EaseRateAction

Class Summary
Constructor Attributes Constructor Name and Description
 
Base class for Easing actions with rate parameters

Method Summary

Class Detail

cc.EaseRateAction()
Base class for Easing actions with rate parameters

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