Class cc.RotateBy
Extends
cc.ActionInterval.
Defined in: CCActionInterval.js.
Constructor Attributes | Constructor Name and Description |
---|---|
Rotates a cc.Node object clockwise a number of degrees by modifying it's rotation attribute.
|
Method Attributes | Method Name and Description |
---|---|
<static> |
cc.RotateBy.create(duration, deltaAngle)
|
initWithDuration(duration, deltaAngle)
|
|
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.RotateBy()
Rotates a cc.Node object clockwise a number of degrees by modifying it's rotation attribute.
Method Detail
<static>
{cc.RotateBy}
cc.RotateBy.create(duration, deltaAngle)
// example var actionBy = cc.RotateBy.create(2, 360);
- Parameters:
- {Number} duration
- druation in seconds
- {Number} deltaAngle
- deltaAngle in degrees
- Returns:
- {cc.RotateBy}
{Boolean}
initWithDuration(duration, deltaAngle)
- Parameters:
- {Number} duration
- duration in seconds
- {Number} deltaAngle
- deltaAngle in degrees
- Returns:
- {Boolean}
{cc.ActionInterval}
reverse()
- Returns:
- {cc.ActionInterval}
startWithTarget(target)
- Parameters:
- {cc.Node} target
update(time)
- Parameters:
- {Number} time