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)
Please login to continue.