tileById
Extension method to retrieve a TiledMapTile from the TiledMap by the tileset name and the local tile ID within that tileset. The id is the local tile ID as defined in the Tiled editor, and is automatically converted to the global tile ID using the tileset's firstgid property.
Return
TiledMapTile matching the given tileset and local tile ID.
Parameters
tilesetName
name of the TiledMapTileSet.
id
local tile ID within the tileset.
Throws
if the tileset with the given tilesetName does not exist.
if the tile with the computed global ID does not exist in the tileset.