Using GMTiled2 to load Tiled projects into GameMaker

Aug 17 · 7 min read

Step 1: In Tiled, Create a new project

Step 2 (optional): In GameMaker, add the TMX project

Insert Included File, or drag and drop the .tmx file into the IDE window

Step 3: In GameMaker, add some Tile Sets

Adding a new tileset called tl_dungeon_sheet

Step 4: In Tiled, add the same Tile Sets

Step 5: In Tiled, draw your tiles!

Step 6: In GameMaker, create the object/code that will load the tiles

Method 1: One-shot load

Example of a simple object reading a tmx project and creating layers. Cleanup event contains tiled_destroy(tiles)

Using Object Layers

Step 1: In GameMaker, create the objects you want to be able to spawn

Step 2: In Tiled, create an object layer, and add objects

Step 3 (optional): Set any custom properties of the object

Technical Notes

Data storage format

Layer depth

Room setting in GameMaker showing Instances layer at Depth 0
Layer setting in Tiled

Written by


Electrical Engineer 💡 Programmer 💻 Working in Cloud computing, AI, Robotics 🤖 Indie game dev 🕹 Co-host/editor of @obj_podcast 🎙professional multi-tool 😉

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade