ReplaceTilesOnLayer
From Spheriki
Replaces all instances of one type of tile on a map layer to another.
Contents |
Usage
- layer Number, non-negative. Index of the map layer to make the replacement on.
- old_tile Number, non-negative. Index of the tile to replace.
- new_tile Number, non-negative. Index of the new tile.
Examples
To change tile 15 into tile 24 on layer 2:
ReplaceTilesOnLayer(2, 15, 24);
Notes
- Don't use this function to animate tiles. Use Sphere's inbuilt tile animation system instead.
See also
- GetTile()
- GetTileImage()
- SetTile()
- SetTileImage()