GetNextAnimatedTile

From Spheriki

Jump to: navigation, search

Gets the next tile index of an animation sequence, given the preceding tile.


Usage

number GetNextAnimatedTile(tile);
  • tile Number, non-negative. Index of the tile to find the next animation tile of.
  • number is returned, containing the index of the next tile in the animation.


Notes

  • If the returned index is the same as tile, the tile is considered as not animated.
  • Tile animations are formed by daisy-chaining tiles, linking them by setting the next tile in the animation sequence, along with a delay. This function will let you find the next tile in the chain.
  • Use SetNextAnimatedTile() to change tile animations at run-time, or use the Sphere IDE's map editor if animations aren't going to change.


See also

Personal tools