I’m trying to make a 2d game with imported maps from Tiled, I’m currently loading up the tiles 1 by 1, and have run into a few issues.
When using ImageRectOffset (location of tile in image) and ImageRectSize (32,32 as per tile size), the tiles will occasionally include pixels outside of their “range” like so:
I thought I could mitigate this by padding the tiles, and accommodating for it within the ImageRectOffset, but then this happens: (my math isn’t off, trust me)
Is there any way I could possible fix either of these problems, or is this a limitation of Roblox’s ImageRect rendering? I would assume it’s not a limitation, as I could upload each image separately and it’ll be fixed:
I’d rather not upload individually, as I currently have maps in the making that use 4 different tilesheets, and each tilesheet has 1024 tiles (1024x1024 image, 32x32 tiles) and this would take many many hours to upload and index into modules.