Getting variables and object position from LDtk

How do I…

Get values from the LDtk file, which for me is values from integer grids (as layers), placement of objects, and the values of these objects, which for me its ints, x & y arrays and booleans

Thanks in advance for any help!
TeaMaki

Unfortunately, the Tilemap object in GDevelop only supports tile layers from LDTk files, no object/entity/intgrid/other type of layers.

Additionally, the Tilemap object iself does not support per-tile logic of any kind, currently.

Aw man, does tiled support that kind of stuff then?

No, the Tilemap object itself only supports tile layers. With Tiled you can also pull in the collision shapes if you’ve drawn them on your tileset (using the Tilemap collision object, note this is only for the platform object behavior for platformers).

You will not be able to pull in non-tile layer information from a Tilemap.

Thank you for the help, guess i wasted some hours then ^^'. Hope they include entity layers when (maybe eventually) gdevelop 5 has better support of LDtk.

1 Like

Can’t you just read from the json file directly?

Well there’s no json file, i only have an LDtk one

That is json.

20 characters 20 characters