TileMap:setTexture

From GiderosMobile
Revision as of 10:03, 23 August 2018 by Hgy29 (talk | contribs) (Created page with "__NOTOC__ '''Available since:''' Gideros 2018.2<br/> === Description === <br /> Change the tile texture/atlas used by the tilemap.<br /> <br /> <source lang="lua"> = TileMap:s...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Available since: Gideros 2018.2

Description


Change the tile texture/atlas used by the tilemap.

= TileMap:setTexture(texturetilewidthtileheightspacingxspacingymarginxmarginy,)

'texture: (TextureBase) The texture used in rendering tile map '
'tilewidth: (number) The width of a tile in pixels '
'tileheight: (number) The height of a tile in pixels '
'spacingx: (number, default = 0) The x-spacing in pixels between the tiles in this tileset '
'spacingy: (number, default = 0) The y-spacing in pixels between the tiles in this tileset '
'marginx: (number, default = 0) The x-margin from the top-left of the texture '
'marginy: (number, default = 0) The y-margin from the top-left of the texture '