Class cc.FlipX
- Defined in: CCActionInstant.js
- Extends cc.ActionInstant
Constructor Attributes | Constructor Name and Description |
---|---|
cc.FlipX()
Flips the sprite horizontally
|
Method Summary
Class Detail
cc.FlipX()
Flips the sprite horizontally
Method Detail
-
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