TilemapLayer#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)

TilemapLayer#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)

TilemapLayer#setScale()

setScale(xScale, yScale) This method will set the scale of the tilemap as well as update the underlying block data of this layer. Parameters Name Type Argument Default Description xScale number <optional> 1 The scale factor along the X-plane yScale number <optional> The scale factor along the Y-plane Source code: tilemap/TilemapLayer.js (Line 712)

TilemapLayer#setScaleMinMax()

setScaleMinMax(minX, minY, maxX, maxY) Sets the scaleMin and scaleMax values. These values are used to limit how far this Game Object will scale based on its parent. For example if this Game Object has a minScale value of 1 and its parent has a scale value of 0.5, the 0.5 will be ignoredand the scale value of 1 will be used, as the parents scale is lower than the minimum scale this Game Object should adhere to. By setting these values you can carefully control how Game Objects deal with respo

TilemapLayer#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)

TilemapLayer#shader

shader : PIXI.AbstractFilter The shader that will be used to render this Sprite.Set to null to remove a current shader. Inherited From PIXI.Sprite#shader Default Value null Source code: pixi/display/Sprite.js (Line 93)

TilemapLayer#smoothed

smoothed : boolean Enable or disable texture smoothing for this Game Object. It only takes effect if the Game Object is using an image based texture. Smoothing is enabled by default. Inherited From Phaser.Component.Smoothed#smoothed Source code: gameobjects/components/Smoothed.js (Line 25)

TilemapLayer#swapChildren()

swapChildren(child, child2) Swaps the position of 2 Display Objects within this container. Parameters Name Type Description child DisplayObject - child2 DisplayObject - Inherited From PIXI.DisplayObjectContainer#swapChildren Source code: pixi/display/DisplayObjectContainer.js (Line 85)

TilemapLayer#texture

texture : PIXI.Texture The texture that the sprite is using Inherited From PIXI.Sprite#texture Source code: pixi/display/Sprite.js (Line 28)

TilemapLayer#TilemapLayer

new TilemapLayer(game, tilemap, index, width, height) A TilemapLayer is a Phaser.Image/Sprite that renders a specific TileLayer of a Tilemap. Since a TilemapLayer is a Sprite it can be moved around the display, added to other groups or display objects, etc. By default TilemapLayers have fixedToCamera set to true. Changing this will break Camera follow and scrolling behavior. Parameters Name Type Description game Phaser.Game Game reference to the currently running game. tilemap Phaser.Tile