Trouble With Setting Up Maps

Sorry if something like this has been asked, but for the life of me I can’t find a question similar to this. I make pixel maps and would like to set them up where 1 pixel is one tile, or 2x2, depending on the map. These are mostly small maps, about 400x300, but even them I’m afraid that may be too large. What is the maximum tile size? How can I set up tiles per pixel/pixel group? I downloaded tiled thinking it would be simple since I already have my maps created and just need to layer them with tiles, but so far I am struggling.

Please forgive me if these answers are a little silly, I can’t tell what exactly it is you’re trying to do from your post and what problems you’re running into :'D


There is no maximum map or tile size that I’m aware of, people have made maps with dimensions in the thousands, and I’ve seen people use some pretty large tiles.

A tile size of 1x1 will give you pixel-sized tiles. Your tileset for this would need to consist of just a bunch of coloured pixels.

What do you mean by having your maps already created? Do you mean you have them drawn already? Tiled will not be able to import those, unfortunately, at least not out of the box. You’d have to write a custom importer to analyse the image and use the appropriate tiles, but it might be easier to recreate the maps.

Are you perhaps trying to convert a coded bitmap to tiles, e.g. “each brown pixel should be parsed as a dirt tile, each green pixel should be a grass tile”? You’d have to make a custom importer or an external tool for that, as images like that are not a format Tiled can process as maps out of the box.

1 Like

There is no maximum map or tile size that I’m aware of, people have made maps with dimensions in the thousands, and I’ve seen people use some pretty large tiles.

Awesome, that’s great news.

“each brown pixel should be parsed as a dirt tile, each green pixel should be a grass tile”?

More like “each brown pixel should be an empty brown tile, etc…”, or at least lined up correctly so that I could draw it myself. Don’t need anything as complicated as giving them complex attributes like grass or dirt, I could do that later. I just need them to show up with the correct ratio of 1 pixel of the image being 1 tile. I understand that this may not be possible, but I definitely appreciate your help so far.

Oh! What you want actually is doable!

Scale your image up in an image editor so that each tile-representing pixel (or 2x2 pixel group) is the size of a full tile, and make an Image Layer in your map using that image. You can then draw with your tiles on a Tile Layer (or layers) above that reference image. You can delete the reference layer later when you no longer need it.

Tiled can’t scale the image for you, that’s the one missing step you’ll need to do in an image editor. Make sure you use “Nearest Neighbor” scaling so that the image doesn’t get blurred.

1 Like

Scale your image up in an image editor so that each tile-representing pixel (or 2x2 pixel group) is the size of a full tile, and make an Image Layer in your map using that image. You can then draw with your tiles on a Tile Layer (or layers) above that reference image. You can delete the reference layer later when you no longer need it.

I guess I kind of hinted at it above, but this was pretty much my backup plan. I guess the tile sizes are unchangeable then? I guess it doesn’t matter if I can just resize the image, but its going to make file sizes much larger stretching them like that. Best case scenario would have been being able to change tiles instead of the reference image but some things just can’t be helped I guess. Also thanks again for the help.

I’m still confused by what you’re doing, sorry. Tile sizes are changeable, but changing the tile size won’t change your tileset image.

You can change the map tile size in the Map Properties, this is independent of your tile size in your tileset. You can change your tileset tile size in the Tileset Properties, by editing the Image property. However, that won’t make your 1x1 “tiles” bigger, it’ll just use more pixels as a “tile”. If you want to make your 1x1 and 2x2 pixel tiles physically larger, you’ll have to edit the image, because Tiled does no image editing.

1 Like

I want it so that each tile is exactly one pixel. Me editing the image was just the backup plan in case you couldn’t change tile size to be small enough. If there is a way to shrink tiles so that they are the size of a single pixel, that is what I want. My secondary objective is (if such a thing is possible) to find out if there is a way that Tiled can detect the color of the image under and recreate the picture using Tiled. They do not need attributes like grass or dirt, just the colors. It essentially me wanting the picture to be replicated in Tiled with each tile being equivalent to a pixel from a photo editor, preferably (but not necessary) without me needing to redraw it.

You can make tilesets and maps with 1x1 px tiles no problem.

I don’t understand what you mean by “shrink tiles”. This implies you have larger tiles that you want to turn into 1x1 pixels? If you just misconfigured your map and tilesets, you can edit the sizes as described above. If your source tileset image is missized, you’ll need to edit it with an image editor.

Tiled cannot read an image as tiles out of the box, but you can write an import script to do so. Tiled also can’t automatically generate a tileset for you. You could in theory generate such a tileset yourself in your importer, but it would be easier to make one yourself. It would just consist of your various unique coloured pixels.
The documentation for Tiled JavaScript scripting is here, an import script example can be found here. Note that for reading in images, you will need to use the latest snapshot (or the stable 1.5, which should be out next month), as the Image processing API is new. The documentation is here.

1 Like

Thanks for all the help