Page 1 of 1

Please Answer This Someone!!! About Title/Splash Screen

PostPosted: Mon Nov 05, 2007 9:36 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: Please Answer This Someone!!! About Title/Splash Screen

PostPosted: Mon Nov 05, 2007 10:15 pm
by makslane
Move the view in the event you want.
Look the demos Checkers and Sudoku:

http://game-editor.com/games/checkers.zip
http://game-editor.com/forum/viewtopic.php?f=6&t=3391

Re: Please Answer This Someone!!! About Title/Splash Screen

PostPosted: Tue Nov 06, 2007 12:24 am
by Game A Gogo
create a variable name "Menu_Choice", integer

On key down with Left and right keys on the same event (not repeated)

add this code:
Code: Select all
Menu_Choice=!Menu_Choice;


and then on key down, Enter
Code: Select all
switch(Menu_Choice)
{
    case 0:
    LoadGame("Game");
    break;
    case 1;
    moveto("view", view.width,0,view.width,false);
    break;
}



Case 0 is To play the game and Case 1 is to view the instruction.

and on the text for the game selection in draw actor:
Code: Select all
if(Menu_Choice==0)
{
    b=0;
    g=0;
    r=128;
}
else
{
    b=255;
    g=255;
    r=255;
}


and on the text for the instruction selection in draw actor:
Code: Select all
if(Menu_Choice==1)
{
    b=0;
    g=0;
    r=128;
}
else
{
    b=255;
    g=255;
    r=255;
}


That should do it =3

Re: Please Answer This Someone!!! About Title/Splash Screen

PostPosted: Tue Nov 06, 2007 1:11 am
by Super Pieman
That was a pretty pro answer...
I give you a point! :D

Re: Please Answer This Someone!!! About Title/Splash Screen

PostPosted: Tue Nov 06, 2007 1:14 am
by Game A Gogo
to who?

Re: Please Answer This Someone!!! About Title/Splash Screen

PostPosted: Tue Nov 06, 2007 1:44 am
by Super Pieman
umm... you.
I cant remember if I already gave you the point though.

Re: Please Answer This Someone!!! About Title/Splash Screen

PostPosted: Tue Nov 06, 2007 1:52 am
by Game A Gogo
Thats fine, if it says you cannot add any more points whiting the 30 minutes, then you have gave me it

Re: Please Answer This Someone!!! About Title/Splash Screen

PostPosted: Tue Nov 06, 2007 1:57 am
by Super Pieman
When I type the second code, the return key one, it tells me that on line six i need a colon (:). How do I fix this.

Re: Please Answer This Someone!!! About Title/Splash Screen

PostPosted: Tue Nov 06, 2007 1:59 am
by Game A Gogo
woops, replace "case 1;" by "case 1:" sorry ^,,^;

Re: Please Answer This Someone!!! About Title/Splash Screen

PostPosted: Tue Nov 06, 2007 2:05 am
by Super Pieman
thanx

Re: Please Answer This Someone!!! About Title/Splash Screen

PostPosted: Tue Nov 06, 2007 11:00 am
by Super Pieman
When I type this in with the colon it says that there is an error in Line 7.

Re: Please Answer This Someone!!! About Title/Splash Screen

PostPosted: Tue Nov 06, 2007 11:07 am
by Super Pieman
Nevermind I got it.