Minimap for game

I remember seeing this somewhere, but i cannot find it. Any one know how to get a minimap working for a game. I know you have to do an overlay scene, but i dont know how to size the scene and move it. Thanks for reading

Once you know the size of your map, you can retrieve the player’s position on the real map, and perform simple math to set the position of the player’s marker on the minimap.

To share the position data between the scene you may have to store it in a global variable like GameLogic.playerPos, which can be retrieved from any scene.