Hello Guest

Author Topic: Reorganize Tileset Palette ?  (Read 4147 times)

regnared

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 27
    • View Profile
    • Mah website
Reorganize Tileset Palette ?
« on: February 14, 2013, 04:32:34 am »
Is there a way to re-organize the tiles in a tileset palette? Right now the automatic atlasing and tilset palette workflow is great, just it would be more convenient to create levels if the tiles would be in a certain order.

A bit like this :



Is there a way to edit it? Thank you! :)

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: Reorganize Tileset Palette ?
« Reply #1 on: February 14, 2013, 09:53:34 am »
There is but it isn't straightforward :(
Basically you can edit the palette in the tilemapeditordata object (you have to switch to debug mode). The palette is just a brush like everything else.

Rearranging will be coming in a future tilemap, its been requested a few times.

regnared

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 27
    • View Profile
    • Mah website
Re: Reorganize Tileset Palette ?
« Reply #2 on: February 14, 2013, 05:26:54 pm »
Ha ok! No problemo on that part.

Yeah I was thinking about creating the palette directly in the tilemapeditordata object. Very clever way of doing it. :) Makes a lot of sense to do it this way. Like a Palette layer. :D

Awesome in hearing that Rearranging will be coming in the future tilemap. Do you think it will be some sort of drag and drop just to make things easy and quick?
In any ways, I'm sure it will be cool and efficient. :D


Thinking about this, just had another question. Is it possible to copy/paste layers from a tilemapeditordata object? Say you want to copy/paste it to a new scene. (With the object using the same tileset and dimension as the previous one). Just wondering about that option.

As always, thanks for the very quick and detailed replies. Makes 2dToolkit that much more awesome. :)


unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: Reorganize Tileset Palette ?
« Reply #3 on: February 14, 2013, 09:52:20 pm »
You can do that, there just isn't an interface option right now.
If you wanted to just copy one layer, select it in the layers list, and then pick-up-drag across the whole tilemap, but for multiple layers the engine supports it but no way to do it just yet.

regnared

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 27
    • View Profile
    • Mah website
Re: Reorganize Tileset Palette ?
« Reply #4 on: February 15, 2013, 06:44:51 am »
Oh yeah that would work well. Working on smaller level games so that is cool. :)