MyFirstName
MyFirstName
Have you found a solution for this ? I'm also having this issue
Yeah it fixes the indexing, but the result from running Bevy still has spacing
Yup ! That's what I did Source image now is 357x340 (1 additional pixel to account for the spacing / margin for right - bottom-most tiles) Modified the tmx for...
> I wonder if Tiled's "spacing" is on both sides of the tile or something? No I don't believe so. Source image has 1 pixel spacing, only on the bottom-right...
The parameters of my tileset match the one from the other issue you linked. Does `tileset_with_spacing.png` appear correct in Bevy ?
I forked and ran the example using the `tileset_with_spacing.png` (removing the black borders in order to see the render error more clearly). The green squares are squares that I removed...
Note I don't have atlas feature enabled (the tiled_helper seemed to not really support it ? I haven't tried it yet). I see in the `.wgsl` that spacing considerations are...
> You would need to set the `offset` correctly in [`from_grid`](https://docs.rs/bevy/latest/bevy/sprite/struct.TextureAtlas.html#method.from_grid) That doesn't seem right. "Grid cells are separated by some padding, and the grid starts at offset pixels from...
> The second is messed up -- the transparent padding seems to be included in the "tile area" and the indexing seems potentially messed up. > > I think this...