Class cc.MoveBy
Extends
cc.MoveTo.
Defined in: CCActionInterval.js.
Constructor Attributes | Constructor Name and Description |
---|---|
Moves a cc.Node object x,y pixels by modifying it's position attribute.
|
Method Attributes | Method Name and Description |
---|---|
<static> |
cc.MoveBy.create(duration, position)
|
initWithDuration(duration, position)
|
|
reverse()
|
|
startWithTarget(target)
|
- Methods borrowed from class cc.MoveTo:
- 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.MoveBy()
Moves a cc.Node object x,y pixels by modifying it's position attribute.
x and y are relative to the position of the object.
x and y are relative to the position of the object.
Method Detail
<static>
{cc.MoveBy}
cc.MoveBy.create(duration, position)
// example var actionBy = cc.MoveBy.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}
{cc.ActionInterval}
reverse()
- Returns:
- {cc.ActionInterval}
startWithTarget(target)
- Parameters:
- {cc.Node} target