ldtk icon indicating copy to clipboard operation
ldtk copied to clipboard

[Feature] Auto-Bake an Auto-Layer / IntGrid to a chosen Layer.

Open Manukineko opened this issue 3 years ago • 5 comments

I assume that is a very specific behaviour for a specific use-case(s ?), so let me tel you why I suggest that :

  • I'm using Gamemaker Studio with this user-made Parser to import .ldtk files. The thing is, as you noticed yourself in #646 , there is no IntGrid layer in this engine.
  • I know that there is already a Bake Auto-Layer option in LDtk, for an IntGrid but I was wondering if it could be possible, on top of that, to have the option to define a Layer to auto-bake the IntGrid layer to this layer when I save my project? Like checking an auto-bake option that would display a dropdown of the normal layers to choose to bake to. If I had to make a parallel, it would be like creating a bus to a track in an audio workstation.

That way we could still beneficiate from the Auto-Layer feature and be able to export to Gamemaker Studio, and probably other frameworks/engine ?

What do you think ? It may be out of scope and too specific, though.

Manukineko avatar Nov 01 '22 11:11 Manukineko

Hi, Isn't this similar to exporting PNGs?

image

deepnight avatar May 03 '23 07:05 deepnight

I would like this feature as well. Allow me to clarify the request.

I am using the AutoLayer functionality in LDtk, but I'm not using this in my framework. Because of this, I need to bake the AutoLayer before saving the file. This is annoying because it requires a number of actions, as opposed to a simple Ctrl + S.

  1. Go to the AutoLayer.
  2. Click on Bake Auto-Layer.
  3. Click on Keep both baked result and original.
  4. Right-click on the previous bake
  5. Click on Delete.
  6. Save the file with Ctrl + S.

If there was an option linking an autolayer to a bake-layer, and bake it automatically on saving the file, these steps could be reduced to a Ctrl+ S.

Sheepolution avatar Aug 17 '23 14:08 Sheepolution

I'd also like to be able to bake auto-layer into existing tile layer. And do it JUST for the current level as well if possible.

Gamer-XP avatar Oct 24 '23 13:10 Gamer-XP

I made an edit in a fork that allows me to bake all auto-layer. By pressing Ctrl + B all existing layers with the suffix "_baked" are removed. Then all auto-layers are baked into new layers with that same suffix.

Probably not implemented in the way you would want to, but maybe it inspires you to come up with a way to implement this feature request.

https://github.com/Sheepolution/ldtk/blob/master/src/electron.renderer/data/Definitions.hx#L171

Sheepolution avatar Apr 09 '24 20:04 Sheepolution

I also would really want this, writting a parser for int grids is gunna be a pain in the ass and I'd like to not have to do all that work

Ethanscharlie avatar Jul 13 '24 21:07 Ethanscharlie