What Nodes required to show an in game map of my TileMapLayer

Godot Version

4.4.1.rc1

Question

Hello,
I am relatively new to Godot but I have 20+ years of non-game programming experience. I am trying to make an in-game map so that when the player presses the ‘M’ key, a screen pops up with a scaled down version of the TileMapLayer the player is currently on. It is hard to search for anything ‘Map’ related because I get tile map or mini-map but nothing about what I am trying to do. I eventually want to add auto-discovery to the map but I think I can figure that out. I just can’t figure out the a node hierarchy for a scene to show a scaled down map of the entire level the player is on.

Any suggestions are greatly appreciated! Thank you.

There’s various ways you could do this. In my game, I’m doing it by creating a texture and scribbling a map on it; my texture is one pixel per tile, I’ve assigned each tile a color, and I just iterate over the tilemap setting pixels. I fly sprites over the minimap for stuff that moves.

You could also do the minimap with another tilemap, though; make a minimap tilemap with (say) 2x2 pixel tiles…

You could even use the existing tilemap with a separate camera2d and zoom way out, though that might alias badly.

1 Like

Thanks Hexgrid. I am going to try the Camedra2D approach first.