I’ve heard many things about Tiled and decided to look into it. I used MonoGame.Extended’s very useful content processor for importing a TiledMap. It builds correctly, but I can’t actually load the map at runtime.
Here’s my code:
public TiledMap LoadMap(in string mapName)
{
return LoadAsset<TiledMap>(mapName);
}
Finally, here is the output when I make a build:
My Content root directory is set to “Content/” and I am able to load everything else fine. I have confirmed that the file path to the .tmx file is correct. The .tmx, .tsx, and processed XNB file for the tile image are all in the same directory. The inner exception indicates it’s looking for a file named “BG2.xnb,” which would mean I have to process the .tsx file as a tileset, but there is no such option for any of the importers. Any ideas?