aseprite / aseprite/Aseprite-Script-Examples

"Pack Similar Tiles.lua" script ends up with a hole in the tilemap

Open
#10 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Lua
Stars
344
Forks
34
PR merge metrics
No merged PRs in 30d

Description

Using this image with tile size as 16x16 and sprite sheet width of 256

![level1-2](https://github.com/aseprite/Aseprite-Script-Examples/assets/141159/801f90e9-e971-4b16-9da1-1a09e83ee824)

The resulting tilemap has a black pixel in it, which is `0` in the png data at `(50,29)`

![terrain tilemap](https://github.com/aseprite/Aseprite-Script-Examples/assets/141159/0bb03644-3b81-4c77-89df-1598d4ad7485)

Here is a scaled copy of the tilemap at 4x to help show the black pixel

![terrain tilemap scaled](https://github.com/aseprite/Aseprite-Script-Examples/assets/141159/37de4f30-7275-485b-bc8d-69a44b1b408b)

Third row up from bottom, about a third of the way across.

I am digging into this now and see if I can figure it out. But I figured I'd post here too in case this is known or anyone has any ideas.

If I figure it out, I'll submit a PR.

Oh and here is the tileset, in case that is helpful

![terrain tileset](https://github.com/aseprite/Aseprite-Script-Examples/assets/141159/f98f6b1c-cff4-4b75-91ed-f447c5ced4c8)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.