Im working on a 2d platformer, but there is one big problem
TileMaps are being painful
I have a tile set of 25X25 tiles, but they don't line up when painting in the editor
Notice how the orange boxes are slightly off from the tiles
This makes setting up collisions a pain, and when painting the tiles they mesh together
PLEASE HELP ME
How do I use tile maps well?
Godot has a lot of functionality when it comes to helping you do tilemaps, but don't be fooled, setting up a tilemap correctly still takes time and patience. In your situation look at tweaking the "snap options" such as offset, step, and separation.
- Edited
- Best Answerset by Vickyboi
I know this may seem ridiculous, but try using the following sizes listed below, if you don't use these sizes I've noticed that odd numbers especially bork the spacing and the blending. You also need to keep your tile size consistent throughout your whole project, so pick a tile size to work with and stick with that, otherwise your art will look very off. I have been through the exact same problems as you learning tilemaps and it's a process. A lot of tutorials tend to skip over these important elements when it comes to choosing size.
8 x 8
16 x 16
32 x 32
This tutorial I found awhile back does a great job explaining the art side of things.
Give it a try and let me know if that fixes the problems, well done by the way for sticking with simple art first, that's the way to go so you can make sure your tiles are all working correctly. There's some pretty specific maths involved in tile making that you can't get away with unlike standard sprites. It can get even trickier when you're dealing with isometric art.
Edit: Extra note, I use the art software Krita myself and it happens to have an excellent feature called wrap around which allows you to make textured patterns, this works great if you're making any kind of materials from scratch or 2D art where you need it to seamlessly repeat without having to do any of the silly maths you usually have to do in other software to create patterns.
This may have something to do with this issue:
- 2D: Fix rendering odd-sized tiles (GH-74814).