Godot Export and Collisions

Sorry if this is answered already. I looked a little bit and couldn’t find what felt like a definitive answer. The documentation also doesn’t make a direct mention.

When exporting Tiled to Godot 4, are the “Collisions” in Tiled understood and exported somehow?

Or is it only custom tile properties that are also exported? We were hoping that the collisions might be export and then imported into godot as-is, with collision tiles populated already.

Thanks!

Sorry I don’t have an answer, but that’s what I’ll be working on tonight. I’ll post back anything I learn. I have the navigation layer working, but I’m not 100% sure I’ve done that correctly.

I’m making isometric/dimetric maps for a game like Red Alert 2, and would like to be able to navigate behind trees. Are you making a platformer?

Good luck

Heyo,

I am making various things to prototype and experiment in Godot, and was hoping that you could easily import a Tiled map into Godot complete with collisions created and handled.

I do get that it is a bit of a complicated process to make the collision layer in Godot and translate the stuff over, but was hoping/praying!

The main reason being, it would allow the map-editor (who may not be myself) to edit easily without having to dive into Godot and start clicking around.

Yeah same for me, I’m hoping people can use Tiled as the map editor for my game, with some instructions to follow.

I’ll let you know how I get on :slight_smile:

Hello! Collisions you set up inside Tiled tilesets and used in your tilemaps do get exported to Godot. There maybe be a few types that godot doesn’t accept that tiled uses (I’m unsure), but polygons and rectangle collisions do get exported and work well in Godot 4.

Keep in mind, currently the Godot export option exports to the old TileMap node. I pushed a PR to update it and have it export TileMapLayer nodes instead if the project is using Godot 4.3 or later. In the meantime, Godot has an option to migrate/turn TileMap nodes into TileMapLayers, so it shouldn’t be much of a problem till the PR gets merged.