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.