Quote:

PANEL* startgame_pan =
{
bmap = "main2_tga";
pos_x = 0;
pos_y = 468;
button (0, 1, "StartGame3_bmp", "StartGame3_bmp", "StartGame3_bmp",NULL, NULL, NULL);
button (330, 1, "settings3_bmp", "settings1_bmp", "settings2_bmp", startgame_to_settings, NULL, NULL);
button (580, 3, "extras3_bmp", "extras1_bmp", "extras2_bmp", startgame_to_extras, NULL, NULL);
button (800, 0, "quit3_bmp", "quit1_bmp", "quit2_bmp", startgame_to_quit, NULL, NULL);
button (10, 70, "new3_bmp", "new1_bmp", "new2_bmp", start_game, NULL, NULL);
button (10, 120, "load3_bmp", "load1_bmp", "load2_bmp", NULL, NULL, NULL);
button (10, 170, "save3_bmp", "save1_bmp", "save2_bmp", NULL, NULL, NULL);
flags = | OVERLAY | OVERLAY | OVERLAY;
}


function main()
{
fps_max = 70;
video_mode = 9;
video_screen = 1;
mouse_spot.x = 1;
mouse_spot.y = 1;
wait (2);
set (main_pan, VISIBLE);
mouse_mode = 4;
mouse_map = mouse_pcx;
}

function start_game()
{
reset (main_pan, VISIBLE);
game_started = 1;
mouse_mode = 0;
level_load (NULL);
wait (3);
}



When I press new button, game starts but panel is still visible. Maybe because it is visible from the begining I mean there are
set (main_pan, VISIBLE); (in function main)
so it still shows, how to get my panel hidden when I start game?
(this is not full code) ( I don't know how you guys are posting scripts here)

Ps: how can we do donate for you? ( I am not saying I am going to make it )

Last edited by Saruniks; 07/26/09 17:20.