GPS help needed!!

Hi,
I’m moving from Blender Game Engine a game i built.
In this game I had a submarine character moving on a map and in a GUI you could read its x y position lik on a GPS device. I wrote a small python script for that.

How can I display (in real time) on screen the position of an object?

Hi, welcome to the forum!

You can get an object’s position from its transform.position property. You can then display the value onscreen using GUI.Label:-

function OnGUI() {
    var posText = "Position: " transform.position.x + ", " + transform.position.z;
    GUI.Label(posRect, posText);
}