This site is currently in read-only mode during migration to a new platform.
You cannot post questions, answers or comments, as they would be lost during the migration otherwise.
+2 votes

How would you go about making a custom minimap for a 2D game?

I want to make a custom minimap with specific icons for each group. For example a red dot for enemies, a blue for pickups and so on.
And since the enemy will be moving around I need the map to update probably every half second (each frame is overkill but is probably the same code or less, thinking of performance)
How would I go about this?

  • Making a scanner (circle Area2D for circular map) that scan for entering bodies, but also have to update ever so often, and get their position to send to a generated HUD minimap?
  • Make a new scene and overlap, with each dot linked somehow to it's respecting game object, and use Viewport to overlap in the HUD?
in Engine by (17 points)

1 Answer

0 votes
Best answer

I did just this in my project. To see how, you can reference the mini_map* files here. Sorry the scenes are still scn. I'm working out a few other things before I switch my files to tscn.

by (225 points)
selected by

Can you give a more detailed answer?

There are many nuances in ways you can do a minimap.
I think he meant you to open his project to see all the details about how he did it ;)

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 Frequently asked questions and 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 [email protected] with your username.