ReplaceTilesOnLayer

From Spheriki

Jump to: navigation, search

Replaces all instances of one type of tile on a map layer to another.


Contents

Usage

ReplaceTilesOnLayer(layer, old_tile, new_tile);
  • 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

Personal tools