+1 vote

So i'm getting used to working with tilemaps on godot and i have stumbled into a problem.
I'm making rpg full topdown and the map is like the maps on tabletop rpg's. And when i create a tile that isn't a square it stays offgrid, i'm trying to make a tile of a wall that is 25 x 100 but when i use it in the tilemap the image appears two "blocks" away from the actual block in which my mouse is. And if i put the tile the sprite appears but the collision box go to two bocks away. Also there is a way to make a tilemap that accepts overlap between tiles and tiles of differente sizes? working with different layers (nodes) of tilemaps isn't optimal.

in Engine by (13 points)

1 Answer

+1 vote

TileMaps have a tile origin setting that controls whether tiles are placed at their centre or one of their corners.
Tile Origin

TileMaps also have a Y Sort mode you can turn on to allow tiles to overlap tiles behind them.
Y Sort

With that, make sure you're setting the offset points of your tile sprites correctly.

by (287 points)
Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.

Categories