Page 1 of 1

Title Screen Choices

PostPosted: Sat Nov 03, 2007 3:37 pm
by Super Pieman
I have started making a game and I have a Title Screen with 2 choices; either play game or see instructions. You move between the two using the arrow keys and press enter to choose. It works exept when I press enter for the game it still shows the Instructions. What do I do? I do not want any use of the mouse in this game.

Re: Title Screen Choices

PostPosted: Tue Nov 06, 2007 11:45 am
by Bee-Ant
make variables called MENU

On Menu 1 DrawActor>ScriptEditor>
Code: Select all
if(MENU==0)
{
    r=256;
    g=0;
    b=0;
}
else
{
    r=256;
    g=256;
    b=256;
}
if(MENU<0)
{
    MENU=1;
}
if(MENU>1)
{
    MENU=0;
}


Keydown Event of Menu 1>DownArrow>ScriptEditor>
Code: Select all
MENU++;

Keydown Event of Menu 1>UpArrow>ScriptEditor>
Code: Select all
MENU--;

Keydown Event of Menu 1>Return>ScriptEditor>
Code: Select all
if(MENU==0)
{
    //your first menu
}
if(MENU==1)
{
    //your second menu
}


DrawActor of Menu 2>ScriptEditor>
Code: Select all
if(MENU==1)
{
    r=256;
    g=0;
    b=0;
}
else
{
    r=256;
    g=256;
    b=256;
}

Re: Title Screen Choices

PostPosted: Tue Nov 06, 2007 2:33 pm
by Bee-Ant
If you still confused, i'll make a demo...or email me beeant_darkboy@yahoo.co.id