Phaser API Documentation

tileSprite(config, [addToScene])


Creates a new TileSprite Game Object and returns it.

Note: This method will only be available if the TileSprite Game Object has been built into Phaser.


name type arguments description
config Phaser.Types.GameObjects.TileSprite.TileSpriteConfig

The configuration object this Game Object will use to create itself.

addToScene boolean <optional>

Add this Game Object to the Scene after creating it? If set this argument overrides the add property in the config object.


The Game Object that was created.