Use multiple terrains with multiple layers
mainTileMapDual layers (one layer per terrain type) rather than trying to manage them all in a single layer.repository·main·Indexed 22 days ago
https://github.com/pablogila/tilemapdualA Godot plugin providing a custom TileMapLayer node that implements a real-time dual-grid tileset system. It supports square, isometric, and hexagonal grids, reducing the required tile count for complex autotiling. Includes TileMapDualLegacy for v4 compatibility and support for separating display tiles from world logic tiles.
TileMapDual layers (one layer per terrain type) rather than trying to manage them all in a single layer.To separate visual representation from game logic (like collisions and pathing), use two separate spritesheets:
This separation allows you to place hitboxes on the display tiles while keeping the underlying logic tiles clean for pathfinding or collision detection.
TileMapDual is installed as a standard Godot plugin.
addons/TileMapDual folder into your Godot project directory.To implement isometric tilemaps, you must use an isometric version of the standard dual-grid tileset template.
While these can be drawn by hand, it is recommended to use a tool like TileCropper (a Godot plugin) to draw tiles in one continuous image and then separate them into the required dual-grid layout.
TileMapDual functions as a custom TileMapLayer node. To use it:
TileMapDual node in your scene.TileSet to the node.Once configured, you can sketch levels using the fully-filled tile or the empty tile (located in the bottom-left of your tileset) to trigger real-time dual-grid updates.
Common troubleshooting tips:
TileSet directly in the Assets folder. You must place the TileSet inside a TileMapDual node first to enable autogeneration.TileSet, but ensure terrains are set up correctly to avoid layout issues.TileMapDual v5 is a complete rewrite. If you need the stable behavior of the previous version or are migrating from v4, use the TileMapDualLegacy node included in the v5 package.
Note: The legacy version only supports square and isometric grids; it does not support hex grids.