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