Creates a new TileSprite Game Object and adds it to the Scene.
Note: This method will only be available if the TileSprite Game Object has been built into Phaser.
name | type | arguments | description |
---|---|---|---|
x | number |
The horizontal position of this Game Object in the world. |
|
y | number |
The vertical position of this Game Object in the world. |
|
width | number |
The width of the Game Object. If zero it will use the size of the texture frame. |
|
height | number |
The height of the Game Object. If zero it will use the size of the texture frame. |
|
texture | string | Phaser.Textures.Texture |
The key, or instance of the Texture this Game Object will use to render with, as stored in the Texture Manager. Cannot be a DynamicTexture. |
|
frame | string | number | <optional> |
An optional frame from the Texture this Game Object is rendering with. |
The Game Object that was created.