karai17 / Simple-Tiled-Implementation

Tiled library for LÖVE
Other
857 stars 121 forks source link

Why STI is not loading correctly this tileset #271

Closed iedavilac closed 2 years ago

iedavilac commented 2 years ago

Hi everybody, I'm pretty new to Lua and Love2d. I wanted to add a map to my pokemon clone game using STI and Tiled. I don't know why, but when I use this tileset ETS and loaded into my game, I don't get the expected result. image and I should get something like this (taken from Tiled editor) image When I use other tilesets, I don't have any problem. Any help is appreciatted, thank you.

karai17 commented 2 years ago

The issue is likely the dimensions of the texture. most GPUs prefer a texture that is a power of two pixels, squared. this texture is extremely tall. try reorganizing the texture so that it is more square, such as 1024x1024 or 2048x2048, etc.

iedavilac commented 2 years ago

Thank you very much. That solved my problem.