ldtk
ldtk copied to clipboard
[Feature] Auto-Bake an Auto-Layer / IntGrid to a chosen Layer.
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-Layeroption 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 anauto-bakeoption 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.
Hi, Isn't this similar to exporting PNGs?

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.
- Go to the AutoLayer.
- Click on Bake Auto-Layer.
- Click on Keep both baked result and original.
- Right-click on the previous bake
- Click on Delete.
- 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.
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.
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
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