Class cc.MoveTo
- Defined in: CCActionInterval.js
- Extends cc.MoveBy
Constructor Attributes | Constructor Name and Description |
---|---|
Moves a CCNode object to the position x,y.
|
Method Summary
Class Detail
cc.MoveTo()
Moves a CCNode object to the position x,y. x and y are absolute coordinates by modifying it's position attribute.
Several CCMoveTo actions can be concurrently called, and the resulting
movement will be the sum of individual movements.
Several CCMoveTo actions can be concurrently called, and the resulting
movement will be the sum of individual movements.
Method Detail
-
{cc.MoveTo} clone()returns a new clone of the action
- Returns:
- {cc.MoveTo}
-
// example var actionBy = cc.MoveTo.create(2, cc.p(80, 80));
- Parameters:
- {Number} duration
- duration in seconds
- {cc.Point} position
- Returns:
- {cc.MoveBy}
-
{Boolean} initWithDuration(duration, position)
- Parameters:
- {Number} duration
- duration in seconds
- {cc.Point} position
- Returns:
- {Boolean}
-
startWithTarget(target)
- Parameters:
- {cc.Node} target