[SOLVED] How to create a radar

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

Hello there!

In my project, I am now working on the HUD for a player. But I am stucked at the minimap / radar feature. I’ve read other questions and some articles on different sites, but I haven’t found the answer.

I’ve just found that I need a container, viewport, sprite and camera2d. Added Area2d to my player to detect bodies to display. Ok…, but what now? In addition, my player can change the equipment and increase the range of a radar for detecting bodies, but the radar will always have the same size. How to achieve it? Displaying the body’s position relative to the player?

How to actually code it?

Thank you for any advice and help.

I’ve found my way how to do it. So this is a solved thread.

Errr, what? That’s an Godot Engine QA, not HowToMakeAGame QA. I don’t want be rude, but… Where’s question here? Radar and minimap is gamedev topic.
I don’t even know HOW it supose to look. Any screenshoot, something? Don’t you know how to make Control, how to code behavior of it, or what?
EDIT: Pls. split that to smaller questions, ie. how to make “that” (here’s screen) control? Or: How to update detect range of my radar? (then show code wich you have).

Kamil Lewan | 2018-05-05 10:56

Well, I realized that this was actually a bad question. Sorry for that. Been a while without net connection. Anyway, in the time without the net, I’ve figured out how to create the radar I wanted. Without viewport, camera, etc. Just code with a texture. So this is actually a solved thread.

But thanks for the answer, Kamil :slight_smile:

IranosMorloy | 2018-05-11 21:30