Table of Contents | ||||||
|
||||||
ChangeTileSet | ||||||
Purpose Changes the tile set that the engine uses to render the maps |
||||||
Protoype void CTileMngr::ChangeTileSet (string str_image_id, int i_rows, int i_cols) |
||||||
Parameters
|
||||||
Description This function takes an image ID that references a new tile template for the map engine to use. You must also specify the correct dimensions of the tile set. Caution: This function simply swaps the old tileset with the new one. This can be cool since you can have two seperate tilemaps for one map and swap them to instantaneously change the map's appearance, but make sure the tile sets have the same dimensions, or there may be errors when the map renderer tries to access map tile image cells that no longer exist. |
||||||
Use CTileMngr tile_mngr; tile_mngr.ChangeTileSet("new_tileset", 5, 5); |
||||||
|
||||||
|