MCPcopy
hub / github.com/phaserjs/phaser / setFlip

Method setFlip

types/phaser.d.ts:19341–19341  ·  view source on GitHub ↗

* Sets the horizontal and vertical flipped state of this Game Object. * * A Game Object that is flipped will render inverted on the flipped axis. * Flipping always takes place from the middle of the texture and does not impact the scale value.

(x: boolean, y: boolean)

Source from the content-addressed store, hash-verified

19339 * @returns This Game Object instance.
19340 */
19341 setFlip(x: boolean, y: boolean): this;
19342 /**
19343 * Resets the horizontal and vertical flipped state of this Game Object back to their default un-flipped state.undefined
19344 * @returns This Game Object instance.

Callers 6

Tile.jsFile · 0.80
Tilemap.jsFile · 0.80
createMethod · 0.80
createMethod · 0.80
Bob.test.jsFile · 0.80
Flip.test.jsFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected