Can you make a 2d tile map visible?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Ky42

I have been working on a project where a the player can build using the tile map and I want to give an outline of the tile map so they can see where each tile is. Is it possible to make the tile map partly visible or do I need to make my own outline?

:bust_in_silhouette: Reply From: eod

I think you’ll need to make your own outline, I don’t see anything in the TileMap class that sort of creates a “grid” outline of itself.

A possible solution for your project may be to just add another tilemap (layer it appropriately in z) with the same sprite in every cell. You could create a simple transparent sprite with a border, which would create that grid outline; and then that could be used as an outline for your player to build on-top of.