Class cc.FlipX
- Defined in: CCActionInstant.js
- Extends cc.ActionInstant
Constructor Attributes | Constructor Name and Description |
---|---|
cc.FlipX(flip)
Flips the sprite horizontally.
|
Method Summary
Class Detail
cc.FlipX(flip)
Flips the sprite horizontally.
var flipXAction = new cc.FlipX(true);
- Parameters:
- {Boolean} flip
- Indicate whether the target should be flipped or not
Field Detail
Plese use cc.flipX instead.
Create a FlipX action to flip or unflip the target
- Deprecated:
-
since v3.0
Plese use cc.flipX instead.
Method Detail
-
{cc.FiniteTimeAction} clone()to copy object with deep copy. returns a clone of action.
- Returns:
- {cc.FiniteTimeAction}
-
ctor(flip)Constructor function, override it to extend the construction behavior, remember to call "this._super()" in the extended "ctor" function.
Create a FlipX action to flip or unflip the target.- Parameters:
- {Boolean} flip
- Indicate whether the target should be flipped or not
-
{Boolean} initWithFlipX(flip)initializes the action with a set flipX.
- Parameters:
- {Boolean} flip
- Returns:
- {Boolean}
-
{cc.FlipX} reverse()returns a reversed action.
- Returns:
- {cc.FlipX}
-
update(dt)Called once per frame. Time is the number of seconds of a frame interval.
- Parameters:
- {Number} dt