How do I import .tmx (Tile Map Editor) file into my XNA Project

Rekha picture Rekha · Feb 24, 2011 · Viewed 10.5k times · Source

I tried to load a .tmx (Tile Map Editor) file into my project but I'm getting this error:

Cannot autodetect which importer to use for "Level1.tmx" There are no importers which handle this file type. Specify the importer that handles this file type in your project.

Answer

Lawrence Li picture Lawrence Li · Oct 16, 2012

XNA does not load the file by default. There is a full TMX Map Loader for XNA projects located here http://windowsphonedevelopments.com/tmx-map-loader-xna-1-0/

TMX Map Loader XNA is a full XNA content pipeline library that allows you to load and process the data from the TMX source asset file and output the data as an intermediate format at design time (output to an .xnb file).