Class cc.EaseElasticIn

Class Summary
Constructor Attributes Constructor Name and Description
 
Ease Elastic In action.

Method Summary

Class Detail

cc.EaseElasticIn()
Ease Elastic In action.
Reference easeInElastic:
http://www.zhihu.com/question/21981571/answer/19925418
//The old usage
cc.EaseElasticIn.create(action, period);
//The new usage
action.easing(cc.easeElasticIn(period));
since v3.0 please use action.easing(cc.easeElasticIn())

Method Detail

  • {cc.EaseElasticIn} clone()
    to copy object with deep copy. returns a clone of action.
    Returns:
    {cc.EaseElasticIn}
  • <static> {cc.EaseElasticIn} cc.EaseElasticIn.create(action, period)
    Creates the action with the inner action and the period in radians (default is 0.3).
    Reference easeInElastic:
    http://www.zhihu.com/question/21981571/answer/19925418
    //The old usage
    cc.EaseElasticIn.create(action, period);
    //The new usage
    action.easing(cc.easeElasticIn(period));
    Parameters:
    {cc.ActionInterval} action
    {Number} period Optional, Default: 0.3
    Deprecated:
    since v3.0
    Please use action.easing(cc.easeElasticIn(period))
    Returns:
    {cc.EaseElasticIn}
  • {cc.EaseElasticOut} reverse()
    Create a action. Opposite with the original motion trajectory.
    Returns:
    {cc.EaseElasticOut}
  • update(dt)
    Called once per frame. Time is the number of seconds of a frame interval.
    Parameters:
    {Number} dt