Why does this happen when using TileMaps?

Hello pals!

I’m new here and I don’t know how to fix this problem.
If I try to select more than one when painting with the brush, they get mixed!

I’ve attached a picture so you can check it out.

Thank you so much!

It does not and I’m not going through a clickfest on Google drive.

Just upload your picture by dragging the picture onto the browser, then including it in your message.

Works every time.

You may edit your post above.

1 Like

Already fixed! I’m so sorry, my bad. I was pressing the wrong buttom!

1 Like

Looking at your picture it seems like perhaps some scale is incorrect? Is it only certain tiles in that palette? Only on this TileMap? What about a fresh-from-scratch test Tilemap?

It smells like something has an extra scaling term in it that is throwing off the cell calculations…

That’s a test one, actually. It happened with every Tilemap I used. I’m pretty sure it has something to do with its configuration, but I’ve followed so many tutorials and it’s always the same.

I’m sure it must be a dumb thing, but I don’t really know what to try next.

Try playing with the Pixels Per World Unit on one of the sprites perhaps?? I haven’t used TileMaps in a bit so I forget all the parts that go into getting the correct metrics.

Hey PostFrank, I just played around and mine behaves exactly how we’d expect.

It definitely looks like your sprites are scaled WAY bigger than one unit tile, which is normally due to the Import Settings Pixels Per Unit being incorrect on the spritemap.

If you’re sure that’s not what’s wrong, check that your Tilemap doesn’t have any weird scales, offsets or anchors mucked up.

Hey @PostFrank , yes sounds like fixing the PPU would solve the sizing issue.

8016839--1032104--Tilemap PPU.png

If you’ve downloaded this Tileset from somewhere, you could perhaps go back to the source website to find out the actual Tile size? They are normally at a power of 2 i.e. 16, 32, 64… 512 etc.

Then go to your Tileset Texture Importer Inspector to update the PPU accordingly.

Small note: To bring up the Texture Importer Inspector, you have to click on the Tileset asset in the Project window and not the Tilemap GameObject in the Hierarchy window.