How to implement different size tiles (1x1, 2x2, 3x3)?

Godot Version 4.3 Beta 1

Question

Various textures are available with resolution:

32x32: 1 Tile

64x64: 4 Tiles

96x96: 9 Tiles

I tried creating 3 different layers for each of the texture types. However, the catch is that I can’t put 3x3 tiles on a 1x1 grid of tiles and it turns out that you can’t select the desired location for the tile, which makes the process very difficult.

I’m rewriting the project for the 3rd time and can’t think of a good way to build different sized tiles.

Can you tell me how to implement this system?

(Like in Mindustry game)

P.S.: I can’t put a tile with a solar panel, on 4 tiles of sand in the center. Because the 2x2 grid is not aligned with the 1x1 grid

изображение