Class cc.EaseIn

Class Summary
Constructor Attributes Constructor Name and Description
 
cc.EaseIn action with a rate.

Method Summary

Class Detail

cc.EaseIn()
cc.EaseIn action with a rate. From slow to fast.
//The old usage
cc.EaseIn.create(action, 3);
//The new usage
action.easing(cc.easeIn(3.0));
since v3.0 please use action.easing(cc.easeIn(3));

Method Detail

  • {cc.EaseIn} clone()
    to copy object with deep copy. returns a clone of action.
    Returns:
    {cc.EaseIn}
  • <static> {cc.EaseIn} cc.EaseIn.create(action, rate)
    Creates the action with the inner action and the rate parameter.
    From slow to fast.
    //The old usage
    cc.EaseIn.create(action, 3);
    //The new usage
    action.easing(cc.easeIn(3.0));
    Parameters:
    {cc.ActionInterval} action
    {Number} rate
    Deprecated:
    since v3.0
    Please use action.easing(cc.easeIn(3))
    Returns:
    {cc.EaseIn}
  • {cc.EaseIn} reverse()
    Create a cc.easeIn action. Opposite with the original motion trajectory.
    Returns:
    {cc.EaseIn}
  • update(dt)
    Called once per frame. Time is the number of seconds of a frame interval.
    Parameters:
    {Number} dt