Class cc.BezierBy

Class Summary
Constructor Attributes Constructor Name and Description
 
An action that moves the target with a cubic Bezier curve by a certain distance.

Method Summary

Class Detail

cc.BezierBy()
An action that moves the target with a cubic Bezier curve by a certain distance.

Method Detail

  • {cc.BezierBy} clone()
    returns a new clone of the action
    Returns:
    {cc.BezierBy}
  • <static> {cc.BezierBy} cc.BezierBy.create(t, c)
    // example
    var bezier = [cc.p(0, windowSize.height / 2), cc.p(300, -windowSize.height / 2), cc.p(300, 100)];
    var bezierForward = cc.BezierBy.create(3, bezier);
    Parameters:
    {Number} t
    time in seconds
    {Array} c
    Array of points
    Returns:
    {cc.BezierBy}
  • ctor()
    Constructor
  • {Boolean} initWithDuration(t, c)
    Parameters:
    {Number} t
    time in seconds
    {Array} c
    Array of points
    Returns:
    {Boolean}
  • {cc.ActionInterval} reverse()
    Returns:
    {cc.ActionInterval}
  • startWithTarget(target)
    Parameters:
    {cc.Node} target
  • update(time)
    Parameters:
    {Number} time