Difference between revisions of "TileMap"
From GiderosMobile
Line 10: | Line 10: | ||
| style="width: 50%;"| | | style="width: 50%;"| | ||
=== Methods === | === Methods === | ||
− | [[TileMap.new]] | + | [[TileMap.new]] {{<translate>creates a new TileMap instance</translate>}}<br/> |
− | [[TileMap:clearTile]] | + | [[TileMap:clearTile]] {{<translate>set an empty tile at given indices</translate>}}<br/> |
− | [[TileMap:getTile]] | + | [[TileMap:getTile]] {{<translate>returns the index of the tile</translate>}}<br/> |
− | [[TileMap:setRepeat]] | + | [[TileMap:setRepeat]] {{<translate>Indicate if the tilemap should repeat itself</translate>}}<br/> |
− | [[TileMap:setTexture]] | + | [[TileMap:setTexture]] {{<translate>Change the tile texture/atlas used by the tilemap</translate>}}<br/> |
− | [[TileMap:setTile]] | + | [[TileMap:setTile]] {{<translate>sets the index of the tile</translate>}}<br/> |
− | [[TileMap:shift]] | + | [[TileMap:shift]] {{<translate>shifts the tile map</translate>}}<br/> |
| style="width: 50%;"| | | style="width: 50%;"| | ||
=== Events === | === Events === |
Revision as of 14:19, 23 August 2018
Supported platforms: android, ios, mac, pc
Available since: Gideros 2011.6
Description
The TileMap class is used to work with tile maps easily and efficiently.
Check Desert and Sewers examples provided with Gideros for usage of TileMap with export from editor