ok, now there seems to be another problem, when i #include <credits.c> it tries to combine both scripts, so they both run at the same time, but the buttons dont work. ok heres both scripts, can you please tell me what im doing wrong? Probably a lot. Hopefully this will resolve the problems. I apologize for all of this.

menu:
///////////////////////////////
#include <acknex.h>
#include <default.c>
#include <boxiecredits.c>

/////////////////////////////////////////////CURSOR////////////////////////////
BMAP* my_cursor = "gold_cursor.bmp";

/////////////////////////////////////////////MENU DEFINITIONS//////////////////
BMAP* headpic = "boxieheader.bmp";
BMAP* gonorm = "gonorm.bmp";
BMAP* goover = "goover.bmp";
BMAP* goclicked = "goclicked.bmp";
STRING* gameheader = "BOXIE";
STRING* main_str = "MAIN GAME";
STRING* endu_str = "ENDURANCE MODE";
STRING* cred_str = "CREDITS";
STRING* exit_str = "EXIT";
FONT* header_font = "ariel#80b";
FONT* options_font = "Bauhaus 93#40b";

//////////////////////////////////////////////PANELS//////////////////////////////

PANEL* menupicture =
{
bmap = headpic;
pos_x = 425;
pos_y = 230;
layer = 1;
flags = OVERLAY | SHOW;
}

PANEL* mainbutton1 =
{
bmap = gonorm;
pos_x = 10;
pos_y = 100;
button (0, 0, goclicked, gonorm, goover, NULL, NULL, NULL);
flags = OVERLAY | SHOW;
}

PANEL* endubutton2 =
{
bmap = goover;
pos_x = 10;
pos_y = 200;
button(0, 0, goclicked, gonorm, goover, NULL, NULL, NULL);
flags = OVERLAY | SHOW;
}

PANEL* creditbutton3 =
{
bmap = goclicked;
pos_x = 10;
pos_y = 300;
button(0, 0, goclicked, gonorm, goover, ???????, NULL, NULL);
flags = OVERLAY | SHOW;
}

PANEL* exitbutton4 =
{
bmap = gonorm;
pos_x = 10;
pos_y = 400;
button(0, 0, goclicked, gonorm, goover, quit_program, NULL, NULL);
flags = OVERLAY | SHOW;
}

/////////////////////////////////////////TEXTS///////////////////////////////
TEXT* headertxt =
{
pos_x = 300;
pos_y = 20;
string = gameheader;
font = header_font;
flags = SHOW;
}

TEXT* maintxt =
{
pos_x = 75;
pos_y = 110;
string = main_str;
font = options_font;
flags = SHOW;
}

TEXT* endurancetxt =
{
pos_x = 75;
pos_y = 210;
string = endu_str;
font = options_font;
flags = SHOW;
}

TEXT* creditstxt =
{
pos_x = 75;
pos_y = 310;
string = cred_str;
font = options_font;
flags = SHOW;
}

TEXT* exittxt =
{
pos_x = 75;
pos_y = 410;
string = exit_str;
font = options_font;
flags = SHOW;
}


/////////////////////////////////////////FUNCTIONS///////////////////////////

function main()
{
video_mode = 7;
mouse_map = my_cursor;
mouse_mode = 4;
media_loop("mainmusic.wav",NULL,100);
}

function quit_program()
{
while (key_any) { wait (1); }
sys_exit(NULL);
}




credits:
///////////////////////////////
#include <acknex.h>
#include <default.c>

//////////////////////////////////////////////CURSOR///////////////
BMAP* cursor = "gold_cursor.bmp";

////////////////////////////////////////////////////////////SOUNDS/////////////////////
SOUND* credits_snd = "credits.wav";

/////////////////////////////////////////////BMAP DEFINITIONS////////////////////////////
BMAP* creditbground = "creditsbground.bmp";
BMAP* creditbutt = "creditback.bmp";

/////////////////////////////////////////////PANELS//////////////////////////////////
PANEL* credbground =
{
bmap = creditbground;
pos_x = 20;
pos_y = 10;
layer = 1;
flags = OVERLAY | SHOW;
}

////////////////////////////////////////////////STRING/FONT DEFINITIONS////////////////////
STRING* backbutton = "BACK TO MAIN MENU";
STRING* opening = "AN ATARI TODAY PRODUCTION";
STRING* boxieopen = "BOXIE";
STRING* owner = "OWNER: CHARLES BAILEY";
STRING* character = "CHARACTER DESIGN: CHARLES BAILEY";
STRING* level = "LEVEL DESIGNER: CHARLES BAILEY";
STRING* object = "PROGRAMMER: CHARLES BAILEY";
STRING* instru = "HIT 'BACK TO MAIN MENU' TO RETURN";
FONT* header_font = "ariel#20b";
FONT* options_font = "Bauhaus 93#40b"; //used for both main menu options and the credits opener
FONT* credits_font = "Bauhaus 93#30b"; //used for all other texts in the credits
FONT* boxiestarter_font = "ariel#100b"; //used for the boxieopener only

//////////////////////////////////////////////////////TEXTS////////////////////////////
TEXT* opening_txt =
{
pos_x = 90;
pos_y = 175;
string = opening;
font = options_font;
layer = 3;
}

TEXT* boxieopener_txt =
{
pos_x = 200;
pos_y = 250;
string = boxieopen;
font = boxiestarter_font;
layer = 3;
}

TEXT* owner_txt =
{
pos_x = 100;
pos_y = 300;
string = owner;
font = credits_font;
layer = 3;
}

TEXT* character_txt =
{
pos_x = 250;
pos_y = 150;
string = character;
font = credits_font;
layer = 3;
}

TEXT* level_txt =
{
pos_x = 275;
pos_y = 400;
string = level;
font = credits_font;
layer = 3;
}

TEXT* object_txt =
{
pos_x = 220;
pos_y = 50;
string = object;
font = credits_font;
layer = 3;
}

TEXT* instructions_txt =
{
pos_x = 90;
pos_y = 175;
string = instru;
font = credits_font;
layer = 3;
}
////////////////////////////////////////////////////BUTTONS////////////////////////////////
TEXT* back =
{
pos_x = 275;
pos_y = 20;
string = backbutton;
font = header_font;
layer = 2;
flags = SHOW;
}

PANEL* backbutt =
{
bmap = creditbutt;
pos_x = 275;
pos_y = 10;
button(0, 0, creditbutt, creditbutt, creditbutt, quit_program, NULL, NULL);
layer = 3;
flags = OVERLAY | SHOW;
}


////////////////////////////////////////////////FUNCTIONS////////////////////////
function main()
{
video_mode = 7;
mouse_map = cursor;
mouse_mode = 4;
snd_play(credits_snd, 100, 0);
media_play("mainmusic.wav",NULL,90);
wait(-5);
opening_txt.flags = SHOW;
wait(-4);
boxieopener_txt.flags = SHOW;
wait(-4);
opening_txt.flags = 0;
boxieopener_txt.flags = 0;
wait(-2);
screen_color.red = 135;
screen_color.green = 62;
screen_color.blue = 36;
owner_txt.flags = SHOW;
wait(-4);
owner_txt.flags = 0;
screen_color.red = 0;
screen_color.green = 62;
screen_color.blue = 36;
character_txt.flags = SHOW;
wait(-4);
character_txt.flags = 0;
screen_color.blue = 0;
screen_color.green = 88;
screen_color.red = 88;
level_txt.flags = SHOW;
wait(-4);
level_txt.flags = 0;
screen_color.red = 177;
screen_color.green = 239;
screen_color.blue = 135;
object_txt.flags = SHOW;
wait(-4);
object_txt.flags = 0;
screen_color.blue = 0;
screen_color.red = 0;
screen_color.green = 0;
instructions_txt.flags = SHOW;
}

function quit_program()
{
while (key_any) { wait (1); }
sys_exit(NULL);
}


Thanks a lot!



Last edited by gamingfan101; 07/04/09 02:06.

Sorry, im new. I have a tendency to ask really simple questions, so please be patient.