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

Non-platform specific questions.

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

Postby Super Pieman » Mon Nov 05, 2007 9:36 pm

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.
Current Projects:
*Lonely (2%)
**LinkSys (1%)

*To be made in GE, then ported to DS.
**To be made for the DS.
User avatar
Super Pieman
 
Posts: 57
Joined: Sat Nov 03, 2007 3:27 pm
Location: Manotick (Ontario, Canada)
Score: 2 Give a positive score

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

Postby makslane » Mon Nov 05, 2007 10:15 pm

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
Game Editor is an open source game creator software that's wants to pay it's developers to keep evolving.
If you like Game Editor, make a review!
makslane
Site Admin
 
Posts: 3947
Joined: Sat Apr 05, 2003 6:47 pm
Score: 182 Give a positive score

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

Postby Game A Gogo » Tue Nov 06, 2007 12:24 am

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
Programming games is an art,
    Respect it.
User avatar
Game A Gogo
 
Posts: 3466
Joined: Wed Jun 29, 2005 10:49 pm
Location: French Canada *laughs*
Score: 181 Give a positive score

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

Postby Super Pieman » Tue Nov 06, 2007 1:11 am

That was a pretty pro answer...
I give you a point! :D
Current Projects:
*Lonely (2%)
**LinkSys (1%)

*To be made in GE, then ported to DS.
**To be made for the DS.
User avatar
Super Pieman
 
Posts: 57
Joined: Sat Nov 03, 2007 3:27 pm
Location: Manotick (Ontario, Canada)
Score: 2 Give a positive score

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

Postby Game A Gogo » Tue Nov 06, 2007 1:14 am

to who?
Programming games is an art,
    Respect it.
User avatar
Game A Gogo
 
Posts: 3466
Joined: Wed Jun 29, 2005 10:49 pm
Location: French Canada *laughs*
Score: 181 Give a positive score

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

Postby Super Pieman » Tue Nov 06, 2007 1:44 am

umm... you.
I cant remember if I already gave you the point though.
Current Projects:
*Lonely (2%)
**LinkSys (1%)

*To be made in GE, then ported to DS.
**To be made for the DS.
User avatar
Super Pieman
 
Posts: 57
Joined: Sat Nov 03, 2007 3:27 pm
Location: Manotick (Ontario, Canada)
Score: 2 Give a positive score

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

Postby Game A Gogo » Tue Nov 06, 2007 1:52 am

Thats fine, if it says you cannot add any more points whiting the 30 minutes, then you have gave me it
Programming games is an art,
    Respect it.
User avatar
Game A Gogo
 
Posts: 3466
Joined: Wed Jun 29, 2005 10:49 pm
Location: French Canada *laughs*
Score: 181 Give a positive score

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

Postby Super Pieman » Tue Nov 06, 2007 1:57 am

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.
Current Projects:
*Lonely (2%)
**LinkSys (1%)

*To be made in GE, then ported to DS.
**To be made for the DS.
User avatar
Super Pieman
 
Posts: 57
Joined: Sat Nov 03, 2007 3:27 pm
Location: Manotick (Ontario, Canada)
Score: 2 Give a positive score

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

Postby Game A Gogo » Tue Nov 06, 2007 1:59 am

woops, replace "case 1;" by "case 1:" sorry ^,,^;
Programming games is an art,
    Respect it.
User avatar
Game A Gogo
 
Posts: 3466
Joined: Wed Jun 29, 2005 10:49 pm
Location: French Canada *laughs*
Score: 181 Give a positive score

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

Postby Super Pieman » Tue Nov 06, 2007 2:05 am

thanx
Current Projects:
*Lonely (2%)
**LinkSys (1%)

*To be made in GE, then ported to DS.
**To be made for the DS.
User avatar
Super Pieman
 
Posts: 57
Joined: Sat Nov 03, 2007 3:27 pm
Location: Manotick (Ontario, Canada)
Score: 2 Give a positive score

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

Postby Super Pieman » Tue Nov 06, 2007 11:00 am

When I type this in with the colon it says that there is an error in Line 7.
Current Projects:
*Lonely (2%)
**LinkSys (1%)

*To be made in GE, then ported to DS.
**To be made for the DS.
User avatar
Super Pieman
 
Posts: 57
Joined: Sat Nov 03, 2007 3:27 pm
Location: Manotick (Ontario, Canada)
Score: 2 Give a positive score

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

Postby Super Pieman » Tue Nov 06, 2007 11:07 am

Nevermind I got it.
Current Projects:
*Lonely (2%)
**LinkSys (1%)

*To be made in GE, then ported to DS.
**To be made for the DS.
User avatar
Super Pieman
 
Posts: 57
Joined: Sat Nov 03, 2007 3:27 pm
Location: Manotick (Ontario, Canada)
Score: 2 Give a positive score


Return to General

Who is online

Users browsing this forum: No registered users and 1 guest

cron