Mapping x and y values for minimap.

Hi, basically I’m creating a 2d minimap which shows where the character is going, but the usual method, which is to place a 2nd camera to shoot the terrain from a top angle is rather expensive. So i’ve created a cube, and placed a JPG screenshot of my terrain onto the cube and placed a camera on top of it instead. Is there any way to map the x and y position of the cube to the terrain so i could have a moving point which follows exactly where the player is moving?

By expensive do you mean cost of performance?

Because transforming a gui element around divided by real world positions would be quite a feat that i’m interested in finding out would even work. :smile:

Keep in mind that when someone resizes your game to there custom resolution everything inside the gui element would have to resize with it.

:idea: If you were to make a plane under the surface of your terrain and make it as big as your terrain. then put the jpeg map on it, and put the camera and the plane and the player on its own layer you would not have to convert the movement.
And the detail performance thing would be solved. :smile:

So what kind of game you making :?:

PS It would be real easy to make it so the mini map would cut on and off when you need it or when just in the pause menu.

Yeah it’s the performance i’m talking about.
I’m not really doing a game. It’s just a simple project i needa do for submittion.

I don’t quite understand how you’re doing it, sorry. >< But how about the indicator of the player in the mini map? How can i do it? I tried doing it, and it worked. It showed the indicator moving in the minimap wherever the player went but that’s only when i use the arrow keys to move. Once i swing my mouse to turn the view of the player, the indicator in the minimap “flies” out of the map in a semi-circle direction. =/

Any solutions?