4ian / GDevelop

🎮 Open-source, cross-platform 2D/3D/multiplayer game engine designed for everyone.
https://gdevelop.io
Other
11.73k stars 886 forks source link

Tile Map doesn't render #5244

Open danilwhale opened 1 year ago

danilwhale commented 1 year ago

Describe the bug

When I create Tile Map object and insert map/atlas/tileset I have no tile map rendered in the world

To Reproduce

Steps to reproduce the behavior:

  1. Create project
  2. Create tile map
  3. Insert map/atlas/tileset

image

gTOE.zip

Other details

Windows 10 GDevelop 5.1.160

convictedweirdo commented 1 year ago

I believe there may be an issue with the files you have exported from Tiled. I have just imported your tiles from the PNG provided and made a tileset and map with the assets and they are working as intended.

image

image

You might want to consider recreating a fresh tileset within Tiled.

Working project below with tiled files being export as tiled json files. Hope this helps.

workingTilemap.zip

willianholtz commented 1 year ago

I've seen many of these errors here on github, and I'll say one thing:

In "Tilset Json File", you only put the json of the tileset if you generate it inside Tiled or LDtk (does LDtk do that?). I see many users reporting common connection errors with these files.

One suggestion is to change this name so that there are no more problems with these things. Suggesting TMJ and TSJ would be way better than "Tiled" or "LDtk" in the first file!