/*
Just Call "Map_Window();" your player action to bring up a mini-map.  This is a camera that appears above, looks straight down and follows the player. Then a small view is placed in the lower right of the screen.  This is great for outdoor levels.  It can also be used for single story indoor levels if all textures facing the camera have their surfaces set to "none".  It will also work for multiple stories through a bit of extra coding and level planning.

This code is 
*/
//========================================

view Map_Cam {} // Create Map camera.

Function Map_Window() //Target camera. Attributes
 {
 Map_Cam.visible = off;  //Show View
 Map_Cam.size_x = 104; //<-- 800x600//128; <--1024x768// Window Size X
 Map_Cam.size_y = 104; //<-- 800x600//120; <--1024x768// Window Size Y
 Map_Cam.pos_x = 663; //<-- 800x600//851; <--1024x768// Window Position X
 Map_Cam.pos_y = 470; //<-- 800x600//614; <--1024x768// Window Position Y
 Map_Cam.tilt = -90; // Look Down
 Map_Cam.pan = 90 ; // Top North
 Map_Cam.Noparticle = On;
 Map_Cam.Audible = Off;

     while(1) // Need Loop so variables update
     {
       Map_Cam.X = my.X; // Follow Players X
       Map_Cam.Y = my.Y; // Follow Players Y
       Map_Cam.Z = 1000; // Use this to Zoom the Map
       WAIT(1); // Need break in loop so code wont choke
     }
}