Class cc.SkewTo

Class Summary
Constructor Attributes Constructor Name and Description
 
cc.SkewTo(t, sx, sy)
Skews a cc.Node object to given angles by modifying it's skewX and skewY attributes

Method Summary

Class Detail

cc.SkewTo(t, sx, sy)
Skews a cc.Node object to given angles by modifying it's skewX and skewY attributes
var actionTo = new cc.SkewTo(2, 37.2, -37.2);
Parameters:
{Number} t
time in seconds
{Number} sx
{Number} sy

Field Detail

<static> {cc.SkewTo} cc.SkewTo.create
Please use cc.skewTo instead. Skews a cc.Node object to given angles by modifying it's skewX and skewY attributes。 Changes to the specified value.
Deprecated:
since v3.0
Please use cc.skewTo instead.

Method Detail

  • {cc.SkewTo} clone()
    returns a new clone of the action
    Returns:
    {cc.SkewTo}
  • ctor(t, sx, sy)
    Constructor function, override it to extend the construction behavior, remember to call "this._super()" in the extended "ctor" function.
    Parameters:
    {Number} t
    time in seconds
    {Number} sx
    {Number} sy
  • {Boolean} initWithDuration(t, sx, sy)
    Initializes the action.
    Parameters:
    {Number} t
    time in seconds
    {Number} sx
    {Number} sy
    Returns:
    {Boolean}
  • 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