TileSprite#reset()

reset(x, y) → {Phaser.TileSprite}

Resets the TileSprite. This places the TileSprite at the given x/y world coordinates, resets the tilePosition and then
sets alive, exists, visible and renderable all to true. Also resets the outOfBounds state.
If the TileSprite has a physics body that too is reset.

Parameters
Name Type Description
x number

The x coordinate (in world space) to position the Sprite at.

y number

The y coordinate (in world space) to position the Sprite at.

Returns

This instance.

Source code: gameobjects/TileSprite.js (Line 194)
doc_phaser
2017-02-14 11:17:30
Comments
Leave a Comment

Please login to continue.