Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags
(8 edits)

yeah for some reason my image is stretched i think. i need to use the original.

for some reason i streched the image 1.5 in width and height. the original tileset was 8x8 pixels and i then i made it 12x12 pixels. so when i streched using the nearest pixel this time it looks like this:


has sharp pixels but the diagonals look a bit weird lol. not sure why image processing is so hard. i could change the tileset size to the original 8x8 but that would mess with my code a lot. and my interior houses use 12x12 too. not sure why the hell i decided to go with 12x12 pixels. i used python to resize. 

resized_img = img.resize((new_width, new_height), Image.NEAREST)
its just the pixels dont line up on the grid anymore is the problem when streched. you can tell when you open in paint and look at the pixels... 


think i found a solution, but i will have to change my interior stileset as well. if i double the resolution, so its 24x24 then the pixels line up. just i didnt do my code well when placing the images i should have did x*tilesize + tilesize/2 but i just entered in 12 and 6 instead of tilesize so im going to have to redo a lot of my code so i can change the tilesize easier. 

here is the image at double resolution and stretched 1.5:



i just realized its  supposed to be 12x12 and i stretched it 1.5 for some reason i dont know why and still made the game with the tileset streched... surprised it still worked. if i were to unstrech it then i'd have to replace all the tiles in my entire map because the values of the tiles wouldn't line up anymore. yikes.


https://discourse.mapeditor.org/t/trouble-understanding-set-up-of-mass-replace-t...


maybe this will help me