SpriteBaseTileTake Method |
Namespace: (Default Namespace)
public virtual int TileTake( int TileValue, Counter Counter, int NewValue )
This function will search through all tiles that have been touched (collected by TouchTiles(TileCategoryName), and for each tile that it finds that matches the specified TileValue, it will check Counter, and, if it has not yet reached the maximum value, increment the counter and replace the tile with the tile number specified by NewValue.
Only unprocessed tiles are considered. Once this function (or similar functions) affects the tile, it is marked as processed. It is only marked as processed if it is affected (if the counter changes).