TileSprite#setTexture()

setTexture(texture, destroy) Sets the texture of the sprite. Be warned that this doesn't remove or destroy the previoustexture this Sprite was using. Parameters Name Type Argument Default Description texture PIXI.Texture The PIXI texture that is displayed by the sprite destroy Boolean <optional> false Call Texture.destroy on the current texture before replacing it with the new one? Inherited From PIXI.Sprite#setTexture Source code: pixi/display/Sprite.js (Line 163)

TileSprite#setHealth

setHealth Sets the health property of the Game Object to the given amount.Will never exceed the maxHealth value. Inherited From Phaser.Component.Health#setHealth Source code: gameobjects/components/Health.js (Line 70)

TileSprite#setFrame()

setFrame(frame) Sets the texture frame the Game Object uses for rendering. This is primarily an internal method used by loadTexture, but is exposed for the use of plugins and custom classes. Parameters Name Type Description frame Phaser.Frame The Frame to be used by the texture. Inherited From Phaser.Component.LoadTexture#setFrame Source code: gameobjects/components/LoadTexture.js (Line 155)

TileSprite#setChildIndex()

setChildIndex(child, index) Changes the position of an existing child in the display object container Parameters Name Type Description child DisplayObject The child DisplayObject instance for which you want to change the index number index Number The resulting index number for the child display object Inherited From PIXI.DisplayObjectContainer#setChildIndex Source code: pixi/display/DisplayObjectContainer.js (Line 132)

TileSprite#sendToBack()

sendToBack() → {PIXI.DisplayObject} Sends this Game Object to the bottom of its parents display list.Visually this means it will render below all other children in the same Group. If this Game Object hasn't been added to a custom Group then this method will send it to the bottom of the Game World,because the World is the root Group from which all Game Objects descend. Returns PIXI.DisplayObject - This instance. Inherited From Phaser.Component.BringToTop#sendToBack Source code: gameob

TileSprite#right

right : number The right coordinate of the Game Object.This is the same as x + width - offsetX. Inherited From Phaser.Component.Bounds#right Source code: gameobjects/components/Bounds.js (Line 124)

TileSprite#revive()

revive(health) → {PIXI.DisplayObject} Brings a 'dead' Game Object back to life, optionally resetting its health value in the process. A resurrected Game Object has its alive, exists and visible properties all set to true. It will dispatch the onRevived event. Listen to events.onRevived for the signal. Parameters Name Type Argument Default Description health number <optional> 100 The health to give the Game Object. Only set if the GameObject has the Health component. Returns PI

TileSprite#resizeFrame()

resizeFrame(parent, width, height) Resizes the Frame dimensions that the Game Object uses for rendering. You shouldn't normally need to ever call this, but in the case of special texture types such as Video or BitmapDatait can be useful to adjust the dimensions directly in this way. Parameters Name Type Description parent object The parent texture object that caused the resize, i.e. a Phaser.Video object. width integer The new width of the texture. height integer The new height of the

TileSprite#resetFrame()

resetFrame() Resets the texture frame dimensions that the Game Object uses for rendering. Inherited From Phaser.Component.LoadTexture#resetFrame Source code: gameobjects/components/LoadTexture.js (Line 232)

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 thensets 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 Phaser.Ti