Class cc.FlipX

Class Summary
Constructor Attributes Constructor Name and Description
 
Flips the sprite horizontally

Method Summary

Class Detail

cc.FlipX()
Flips the sprite horizontally

Method Detail

  • <static> {cc.FlipX} cc.FlipX.create(flip)
    Create a FlipX action to flip or unflip the target
    var flipXAction = cc.FlipX.create(true);
    Parameters:
    {Boolean} flip
    Indicate whether the target should be flipped or not
    Returns:
    {cc.FlipX}
  • ctor(flip)
    Create a FlipX action to flip or unflip the target Constructor of cc.FlipX
    var flipXAction = new cc.FlipX(true);
    Parameters:
    {Boolean} flip
    Indicate whether the target should be flipped or not
  • {Boolean} initWithFlipX(flip)
    Parameters:
    {Boolean} flip
    Returns:
    {Boolean}
  • {cc.FiniteTimeAction} reverse()
    Returns:
    {cc.FiniteTimeAction}
  • update(time)
    Parameters:
    {Number} time