Class cc.RotateBy

Class Summary
Constructor Attributes Constructor Name and Description
 
cc.RotateBy(duration, deltaAngleX, deltaAngleY)
Rotates a cc.Node object clockwise a number of degrees by modifying it's rotation attribute.

Method Summary

Class Detail

cc.RotateBy(duration, deltaAngleX, deltaAngleY)
Rotates a cc.Node object clockwise a number of degrees by modifying it's rotation attribute. Relative to its properties to modify.
var actionBy = new cc.RotateBy(2, 360);
Parameters:
{Number} duration
duration in seconds
{Number} deltaAngleX
deltaAngleX in degrees
{Number} deltaAngleY Optional
deltaAngleY in degrees

Field Detail

<static> {cc.RotateBy} cc.RotateBy.create
Please use cc.rotateBy instead. Rotates a cc.Node object clockwise a number of degrees by modifying it's rotation attribute. Relative to its properties to modify.
Deprecated:
since v3.0
Please use cc.rotateBy instead.

Method Detail

  • {cc.RotateBy} clone()
    returns a new clone of the action
    Returns:
    {cc.RotateBy}
  • ctor(duration, deltaAngleX, deltaAngleY)
    Constructor function, override it to extend the construction behavior, remember to call "this._super()" in the extended "ctor" function.
    Parameters:
    {Number} duration
    duration in seconds
    {Number} deltaAngleX
    deltaAngleX in degrees
    {Number} deltaAngleY Optional
    deltaAngleY in degrees
  • {Boolean} initWithDuration(duration, deltaAngleX, deltaAngleY)
    Initializes the action.
    Parameters:
    {Number} duration
    duration in seconds
    {Number} deltaAngleX
    deltaAngleX in degrees
    {Number} deltaAngleY Optional
    deltaAngleY in degrees
    Returns:
    {Boolean}
  • {cc.RotateBy} reverse()
    Returns a reversed action.
    Returns:
    {cc.RotateBy}
  • startWithTarget(target)
    Start the action with target.
    Parameters:
    {cc.Node} target
  • update(dt)
    Called once per frame. Time is the number of seconds of a frame interval.
    Parameters:
    {Number} dt