Gridwright Store

LDtk to Godot ConverterImport LDtk into Godot 4: LDtk to TSCN

Opening LDtk to Godot Converter…

The LDtk to Godot Converter imports an LDtk project into Godot 4 with no plugin to install: a scene for every level, a world scene that places each level where LDtk's world puts it, and one TileSet they all share. Drop the .ldtk file with its tileset pictures, and its .ldtkl level files if your project saves levels separately, or one ZIP of the LDtk folder. A file the project needs and you left out is named, so you can add it.

Tile layers and auto-layers become TileMapLayers, the auto-layer tiles baked as LDtk last drew them, with their flips, offsets and opacity. Godot holds one tile per cell, so tiles LDtk stacks in a cell, places off the grid or draws see-through go on extra TileMapLayers in the order LDtk draws them. IntGrid values become tiles of their colour with the value as custom data, and the values you set solid or one-way get a collision square. Entities come over as Marker2D nodes with their fields as metadata (numbers, text, colours, points, enums, arrays, references to other entities as NodePaths), their tags as groups and their tile as a sprite.

The page draws each level the way LDtk draws it and the way Godot will draw the converted scene, and counts the pixels that differ. LDtk's own sample projects and our examples came out the same in Godot 4.7.2, pixel for pixel, with every entity field read back. It runs on your computer and never uploads your project.

Know someone who needs this? Send it to them

A first session

  1. 1Drop your LDtk project with its pictures and level files, or one ZIP of the folder (or try ours: a cave room, a farm or a dungeon of four levels).
  2. 2Pick a level, switch between LDtk's drawing, Godot's and the differences, and show the collisions and entities.
  3. 3Set each IntGrid value solid, one-way or not solid, untick the layers you don't want, and pick what comes over.
  4. 4Download the ZIP, copy its folder into your Godot project and open the world scene or a level.
It exports
  • A Godot 4 scene (.tscn) per level: TileMapLayers for tile, auto-layer and IntGrid layers, entities as Marker2D with their fields as metadata
  • A world scene with every level where LDtk's world puts it, and one TileSet (.tres) with IntGrid collisions and custom data
  • The tileset pictures beside them, and a README with what came over
Try the demo, then buy it
Free to use, no account needed: open your own files and download everything you make.
Can I use what I make in a commercial game?
Yes. What you make with the tools is yours to use in your games, commercial ones too, under the Gridwright licence.

Packs that work with it

More tools

All 46 tools on one page