Class cc.RotateBy

Class Summary
Constructor Attributes Constructor Name and Description
 
Rotates a cc.Node object clockwise a number of degrees by modifying it's rotation attribute.

Method Summary

Class Detail

cc.RotateBy()
Rotates a cc.Node object clockwise a number of degrees by modifying it's rotation attribute.

Method Detail

  • {cc.RotateBy} clone()
    returns a new clone of the action
    Returns:
    {cc.RotateBy}
  • <static> {cc.RotateBy} cc.RotateBy.create(duration, deltaAngleX, deltaAngleY)
    // example
    var actionBy = cc.RotateBy.create(2, 360);
    Parameters:
    {Number} duration
    druation in seconds
    {Number} deltaAngleX
    deltaAngleX in degrees
    {Number} deltaAngleY Optional
    deltaAngleY in degrees
    Returns:
    {cc.RotateBy}
  • {Boolean} initWithDuration(duration, deltaAngleX, deltaAngleY)
    Parameters:
    {Number} duration
    duration in seconds
    {Number} deltaAngleX
    deltaAngleX in degrees
    {Number} deltaAngleY Optional
    deltaAngleY in degrees
    Returns:
    {Boolean}
  • {cc.ActionInterval} reverse()
    Returns:
    {cc.ActionInterval}
  • startWithTarget(target)
    Parameters:
    {cc.Node} target
  • update(time)
    Parameters:
    {Number} time