How to display the mini map always at the center of the screen?

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

I use control node and draw_rect to draw the mini map, and add it to player as child node. I want the mini map I draw always in middle of the screen, but this way the mini map seems to move with camera. How can I fix the position of the mini map?

:bust_in_silhouette: Reply From: Dlean Jeans

Trying adding it to a CanvasLayer

It works, Thanks!

hsjaaa | 2019-02-07 09:27