ldtk
ldtk copied to clipboard
[Suggestion] Geometry Layer
Hello, following your suggestion, I'm opening an issue for each feedback I've written on the discord channel.
For physics-based games or games which define their collision using geometrical shapes rather than tiles, it will be great to have the ability to define "objects", which consists of graphic + collision shape (ellipses / polygons / polylines), and place them on a new type of layer (let's call it geometry or object layer for now). This will bring some feature parity against the Tiled editor's Object Layer.
Hi, I understand the importance of this feature: I don't know just yet when it'll be done as it raises lots of UI/UX questions to get it right, but I added to backlog for future discussions :)
No issues! Thanks for your response and good work so far!
In #446 , I mentioned allowing specification of z-index for objects. Putting it here so we won't lose track.
Just some thoughts on user user experience possibility.
My gut reaction for where to look for this feature is in the Tilesets page.
I'd expect it maybe to be an extra button in tile custom data page or something like that:

Or maybe clicking on a tile in the tileset view doesn't open the custom data dialog directly, but a menu that lets you chose to edit the collision shape or custom data.
That does restrict your collisions to being per-tile, which can be worse for performance, so having a geometry layer as an alternative wouldn't be a bad idea either.
That probably doesn't help much, but those are my thoughts. :)