aseprite / aseprite

Animated sprite editor & pixel art tool (Windows, macOS, Linux)
https://www.aseprite.org
29.51k stars 6.2k forks source link

Tilemap Index 0 (Empty Tile) Throws Off Tile Arrangement #3179

Open nulflux opened 2 years ago

nulflux commented 2 years ago

No matter what we do we cannot ever align the tiles in the editor as intended. It is like someone swapped stickers on a rubik's cube. There is no valid arrangement to solve the disorder. I vote that the app refrain from adding or removing any tiles to our tilemaps - ESPECIALLY tile 0. The utility of an empty tile is moot when it can easily be assumed in code that tiles are greater than or equal to 1 and 0 or below means 'empty'.

Gasparoken commented 2 years ago

Sorry @nulflux , I don't get the requirement.

dacap commented 2 years ago

Maybe the Tilemap Manual mode is the solution for @nulflux? I think this is related to the Auto mode that modifies the tiles in the tileset automatically, but I'm not sure.

nulflux commented 2 years ago

This is a simple example: Screenshot from 2022-02-17 12-20-33 Screenshot from 2022-02-17 12-20-06 Screenshot from 2022-02-17 12-19-38

Expected behavior: There should be an easy way to make the tilemap preview on the left match the input on the right. If the tilemap preview on the left side just refrained from displaying element 0 the problem would be solved :)

nulflux commented 2 years ago

Maybe the Tilemap Manual mode is the solution for @nulflux? I think this is related to the Auto mode that modifies the tiles in the tileset automatically, but I'm not sure.

I do use that but it doesn't seem to solve the issue. Thanks for the reply :)

Gasparoken commented 2 years ago

Oh, I see now!

At the moment the easiest way to work with tiles is keeping a .aseprite file with your tiles arranged like this:

inline-1101409985

Then, when you want to do some new tilemap in other aseprite file --> Open this arranged tilemap --> copy the Cel --> paste the cel in a new tilemap layer on the new sprite (tile size should be match) --> to pick the correct tile, you don't even have to pick it from tileset, it's easier picking the right tile with the eye dropper tool (quick keyboard shortcut Alt+click).

I strongly recommend you should view this video: https://www.youtube.com/watch?v=TL_JZIuydas AdamCYounis uses a very interesting software combination to boost the tilemap creation (particularly starting of minute 6:43).

I'll be thinking about it.

dacap commented 2 years ago

There are plans for a 2D arrangement of tilesets (and groups of tiles), but the UI details are not yet solved. Please refer to the tilemap issue #977 for more information and design considerations.

Also some extra discussion in https://community.aseprite.org/t/advanced-tileset-management/11741/5?u=dacap about the problems and ideas about using an external tileset (which can be viewed as a fixed 2d tileset) and linking files and modifications between those files.