I’m using a .png spritesheet which has a PoT size - 1024x512. To draw sprites I’m calling openfl.display.Tilesheet.drawTiles. It works as expected on flash and windows, but on Android (at least via BlueStacks) non-transparent pixels are black.
I’m really confused because googling reveals two similar at first glance problems:
transparent pixels are black - not my case;
non-transparent or maybe even all pixels are black, but in case of a NPoT image size - not my case either.
I added <set name="openfl-legacy" /> to project.xml and now I see an empty black screen. Seems like I’m having the same issue as Fernando. Is there maybe some extra information I could provide to ease debugging? Thanks for your time.
Posting in this thread as i’m seeing exectly the same behaviour with the latest openfl/lime using tilesheets on Android (other targets which can use Tilesheets fine).
Pixels with alpha are drawn correctly, pixels without alpha are black - This is occuring on Android target only.
For my current project, I see lots of outlines of things, e.g. my white text is black text with which outlines where alpha exists. similarly with other visible objects
To confirm exactly whats going on - when i re save my tilesheet.png with opacity set to 254/255 (i.e. giving every pixel a tiny bit of alpha) every pixel is drawn correctly !
I encountered similar problem when using Tilesheet on android. But in my case, both transparent and non transparent pixel are rendered black when run on android. I have tried both legacy and v2, but the problem persist. I wonder if I missing something…