Pyxel Edit Forum Archive
ArchiveFeature requests

Tilemap inherit order feature

P
prominent
Sep 9, 2013 at 5:39 am
I have the free version, so I'm unsure if this is implemented. But I'm in need of a way when importing an image(an image of tiles), to put the tiles in the tilemap in the same organization as they are within the image. As it is now, if there is a tree composed of 3x3 tiles, it would scramble the order so it is 9x1 in the tilemap. It would be super useful if there would be an option so that the tilemap keeps the same organization so that I don't have to manually drag each tile around to their correct positions.
Also, an option to include duplicates would help if there's a case where for example two trees use the same tile for their trunk, and you would like it represented twice in the tilemap..
Also, an option to highlight tiles in the tilemap that are duplicates, along with a way to whiteout them with another tile.
 
Danik
Sep 9, 2013 at 4:32 pm
If you have only the imported tiles in the tileset you can change the tileset width (Tiles > Change tileset width), and they should be ordered in the original order. If you import them into a document with existing tiles there is no way to keep the layout, and I don't see how that could be done except for adding a lot of empty tiles.

About keeping duplicates; yeah, maybe, unless the import dialog gets too complicated. This might be an edge case where it's better to let the user duplicate the tile and reposition it themselves than to add extra functionality. Right now I understand how tedious this is with many tiles as the tiles swap places when you drag and drop them, so I will have to add a way to insert a tile at a new position instead to make tasks like this easier.

I will spend some time improving the tileset handling at some point (and the palette handling), they have been the same for a long time, with only minor changes since the free version.


P
prominent
Sep 10, 2013 at 1:44 am
well, I guess the main problem I have..
Is that I leave space to add new tiles into my image. So there's often blank space between groups of tiles.
When pyxel edit creates a tilemap from the image, it doesn't leave the space, so everything becomes scrambled (since it doesn't include duplicates- the tiles that construct the space)..
I think a way to fix this, is perhaps maybe allowing the user to select a color that represents the space in the image, and then pyxel edit could insert an empty tile into the tilemap whenever it comes across a tile with that color in it.. I think that would solve my problem.

Danik
Sep 10, 2013 at 5:18 pm
There is another way to use Pyxel for making tiles that might be better for your purposes.
You can import the tileset, and leave it in the canvas. You can then extend the canvas to the side and make your mockup there, leaving the tileset tiles intact. When you want to save the tileset you then duplicate the document and shrink the canvas again.
Otherwise at the moment the only other solution would be to put some random pixels into the empty tiles, to make them unique.