Class cc.JumpTo
Extends
cc.JumpBy.
Defined in: CCActionInterval.js.
Constructor Attributes | Constructor Name and Description |
---|---|
Moves a cc.Node object to a parabolic position simulating a jump movement by modifying it's position attribute.
|
Method Attributes | Method Name and Description |
---|---|
<static> |
cc.JumpTo.create(duration, position, height, jumps)
|
startWithTarget(target)
|
- Methods borrowed from class cc.JumpBy:
- initWithDuration, reverse, update
- 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.JumpTo()
Moves a cc.Node object to a parabolic position simulating a jump movement by modifying it's position attribute.
Method Detail
<static>
{cc.JumpTo}
cc.JumpTo.create(duration, position, height, jumps)
// example var actionTo = cc.JumpTo.create(2, cc.p(300, 300), 50, 4);
- Parameters:
- {Number} duration
- {cc.Point} position
- {Number} height
- {Number} jumps
- Returns:
- {cc.JumpTo}
startWithTarget(target)
- Parameters:
- {cc.Node} target