Class cc.BezierTo

Class Summary
Constructor Attributes Constructor Name and Description
 
An action that moves the target with a cubic Bezier curve to a destination point.

Method Summary

Class Detail

cc.BezierTo()
An action that moves the target with a cubic Bezier curve to a destination point.

Method Detail

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