Class cc.JumpTo
- Defined in: CCActionInterval.js
- Extends cc.JumpBy
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 Summary
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
-
{cc.JumpTo} clone()returns a new clone of the action
- Returns:
- {cc.JumpTo}
-
// example var actionTo = cc.JumpTo.create(2, cc.p(300, 300), 50, 4); var actionTo = cc.JumpTo.create(2, 300, 300, 50, 4);
- Parameters:
- {Number} duration
- {cc.Point|Number} position
- {Number} y Optional
- {Number} height
- {Number} jumps
- Returns:
- {cc.JumpTo}
-
startWithTarget(target)
- Parameters:
- {cc.Node} target