• 2D
  • Advice on Multiple TileMaps

Hi,

I'm looking to create a 2D game in an 8-bit style.

I'm thinking of using a TileMap for the background, but some of the assets I'm looking to use are 8 x 16 pixels and some are 8 x 20 pixels.

So, I'm thinking of using two tilemaps for my scene, one for the 8x16 tiles and one for the 8x20 pixel tiles.

Godot appears to support this workflow, are there any draw backs of setting up a game like this?

Thanks.

  • no. tilemap doesn't support multiple cell sizes by it's design. So, this is the only way to achieve your goals.

As @boruok mentioned, Godot doesn't allow for multiple tile sizes in a single Tilemap node, so if you want to use different sizes you'll need two nodes, one for each size.

One downside I can see with using two different sizes of tiles is getting their positions lined up together. I think it would be hard to place the larger 8x20 tiles at desired locations on the horizontal as the larger tiles would become increasingly further offset due to their larger size. Depending on how your project is though, this may not be an issue, but its the only big downside i could think of right off.

Thanks for the responses!

Two Tilemaps seems the way to go, The dims of the maps will be different widths, but the heights will be the same, hopefully that will allow me to align things properly.

Cheers.

80 / 16 = 5 and 80 / 20 = 4. Figured it might be worth a note. ;)