spaces = tile0... scan each line, count the number of tile0 in a row before it hits a tile, multiply/divide by a certain value, round that up, move the tiles after that and start counting again better yet, count the number of tile# there is in a row before it switches tile... that would also stretch walls then do the same thing on the y axis... of course theres no way to make it work perfectly, but it could certainly be done... for example, diagonals would most likely be screwed up... but then you just need to drag another line manually but still, i'd do alot of other things before that