ldtk icon indicating copy to clipboard operation
ldtk copied to clipboard

[Suggestion] Geometry Layer

Open ghost opened this issue 4 years ago • 4 comments

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.

ghost avatar Apr 13 '21 05:04 ghost

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 :)

deepnight avatar Apr 13 '21 07:04 deepnight

No issues! Thanks for your response and good work so far!

ghost avatar Apr 15 '21 01:04 ghost

In #446 , I mentioned allowing specification of z-index for objects. Putting it here so we won't lose track.

ghost avatar Apr 16 '21 03:04 ghost

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:

image

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. :)

zicklag avatar Jun 20 '22 14:06 zicklag