for some reason when i run the following code it runs in default resolution and not in 1024x768 has anyone had this trouble before and if so how do i fix it? i have never had this issue at all so i am really confused.

Code:
path "gui"
path "snd"

var video_mode = 8;
var video_screen = 1;
var video_depth = 32;

bmap map_1 "map_1.tga";///mouse map

bmap but_1 "but_1.tga";
bmap but_2 "but_2.tga";///basic buttons

panel side_panel_1 
{
	layer = 10;
	button = 66,159,but_1,but_2,but_1,null,null,null;
	flags = VISIBLE | OVERLAY; 
}

function mouse
{
  while(1)
  {
     vec_set(mouse_pos,mouse_cursor); 
     wait(1);
  }
}

function main
{
	fps_max=60;
	mouse_range=3000;
	level_load("begin.wmb");
	wait(3);
	///move_cam();
	mouse();
	mouse_spot.x = bmap_width(map_1)/2;
	mouse_spot.y = bmap_height(map_1)/2;
	mouse_map = map_1;
	mouse_mode = 1;
}


My other scripts run ok, just this new one seems not to want to.

Last edited by jigalypuff; 12/14/08 21:09.

Why does everyone like dolphins? Never trust a species which smiles all the time!