#Visualize a TileMap Grid

4 messages · Page 1 of 1 (latest)

stuck patrol
#

Is there a good way to visualize the grid of a TileMap like seen in the editor? I want the grid to be visible in game. I wasn't able to find any helpful methods in the TileMap documentation.

If someone could point me in the right direction that would be great!

stuck patrol
#

I was able to get lines on the screen using _draw() and draw_line(), but the tiles cover some of the lines. I am not sure if this is the best way to do it.

formal sage
stuck patrol
#

Thanks! I was having issues getting it to be drawn in front, but realized the parent node (where my script was) was always being put behind the child (tilemap). Changing that and updating the pixel offset by 0.5 made a big difference