Class cc.BezierBy
Extends
cc.ActionInterval.
Defined in: CCActionInterval.js.
Constructor Attributes | Constructor Name and Description |
---|---|
An action that moves the target with a cubic Bezier curve by a certain distance.
|
Method Attributes | Method Name and Description |
---|---|
<static> |
cc.BezierBy.create(t, c)
|
ctor()
Constructor
|
|
initWithDuration(t, c)
|
|
reverse()
|
|
startWithTarget(target)
|
|
update(time)
|
- Methods borrowed from class cc.ActionInterval:
- getAmplitudeRate, getElapsed, isDone, setAmplitudeRate, step
- Methods borrowed from class cc.FiniteTimeAction:
- getDuration, setDuration
- Methods borrowed from class cc.Action:
- copy, copyWithZone, description, getOriginalTarget, getTag, getTarget, release, retain, setOriginalTarget, setTag, setTarget, stop
Class Detail
cc.BezierBy()
An action that moves the target with a cubic Bezier curve by a certain distance.
Method Detail
<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