Legacy:Functions/Map/Tiles
From Spherical
< Legacy:Functions | Map
Tiles
- GetNumTiles(): Get the number of tiles in the current map tileset.
- GetTileWidth(): Get the image width of tiles in the current map tileset.
- GetTileHeight(): Get the image height of tiles in the current map tileset.
- GetTile(tile_x, tile_y, layer): Get the tileset index of the tile at the given map position.
- SetTile(tile_x, tile_y, layer, tile): Plot a tile at the given map location.
- ReplaceTilesOnLayer(layer, old_tile, new_tile): Substitute all old_tile with new_tile on layer.
- GetTileName(tile): Get the name of tile.
- GetTileImage(tile): Get the Image of tile in the current map tileset.
- SetTileImage(tile, image): Change the Image of tile.
- SetTileSurface(tile, surface): Change the Surface of tile.
Tile animations
- GetNextAnimatedTile(tile): Get next tile index of animation from tile.
- SetNextAnimatedTile(tile, next): Set next tile in a tile animation sequence.
- GetTileDelay(tile): Get frame delay of animated tile.
- SetTileDelay(tile, delay): Set a frame delay for this tile animation frame.