Class cc.BezierTo

Class Summary
Constructor Attributes Constructor Name and Description
 
cc.BezierTo(t, c)
An action that moves the target with a cubic Bezier curve to a destination point.

Method Summary

Class Detail

cc.BezierTo(t, c)
An action that moves the target with a cubic Bezier curve to a destination point.
var bezier = [cc.p(0, windowSize.height / 2), cc.p(300, -windowSize.height / 2), cc.p(300, 100)];
var bezierTo = new cc.BezierTo(2, bezier);
Parameters:
{Number} t
{Array} c
array of points

Field Detail

<static> {cc.BezierTo} cc.BezierTo.create
Please use cc.bezierTo instead
Deprecated:
since v3.0 please use cc.bezierTo instead.

Method Detail

  • {cc.BezierTo} clone()
    returns a new clone of the action
    Returns:
    {cc.BezierTo}
  • ctor(t, c)
    Constructor function, override it to extend the construction behavior, remember to call "this._super()" in the extended "ctor" function.
    Parameters:
    {Number} t
    {Array} c
    array of points var bezierTo = new cc.BezierTo(2, bezier);
  • {Boolean} initWithDuration(t, c)
    Initializes the action.
    Parameters:
    {Number} t
    time in seconds
    {Array} c
    Array of points
    Returns:
    {Boolean}
  • startWithTarget(target)
    Start the action with target.
    Parameters:
    {cc.Node} target