Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Discussion / Main Menu

Author
Message
Mucky Muck Ninja
21
Years of Service
User Offline
Joined: 4th Sep 2003
Location: im not entirely sure
Posted: 21st Sep 2003 00:35
Can someone tell me how to make a main menu? My game would be done but it always starts immediatly.

Am I an Idiot...or is everyone else just really smart?
BatVink
Moderator
22
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 21st Sep 2003 02:04
Full Screen Sprite or similar, extra loop that watches for keyboard input, then drops out of loop and runs whichever option was detected.

That's it in a nutshell. You can always expand on it once that's working.

Mattman
21
Years of Service
User Offline
Joined: 5th Jun 2003
Location: East Lansing
Posted: 21st Sep 2003 04:26
What I did was edit the BInary Moon one for his tutorial

Got a knack for finding secrets??? Jingot Racing --- A new brand of Racing --- Only from Nightwatch Studios
"hey, it's tomorrow" --- Hamish
Jess T
Retired Moderator
21
Years of Service
User Offline
Joined: 20th Sep 2003
Location: Over There... Kablam!
Posted: 25th Sep 2003 16:53
try this, its traight from my game... you'll have to insert the images yourself...



Hope that helps... you'll also need to change all of the sizes and mousex() and mousey() values to suit your interface... mine was just a simple one in Photoshop.
these are the pics:






oh, and you should be able to run this code completely independent of anything after the
REMSTART
----------- MAIN PROGRAM STARTS HERE ---------------
REMEND
thats just where it should go...

Hope i helped...

If Quizz's Are Quizzical, Then What Are Test's?
Jess T
Retired Moderator
21
Years of Service
User Offline
Joined: 20th Sep 2003
Location: Over There... Kablam!
Posted: 25th Sep 2003 16:56
ok, so the images didnt work...they are all here:
http://www.scorpius.spaceports.com/~prozack/images/menu.png
http://www.scorpius.spaceports.com/~prozack/images/play_over.png
http://www.scorpius.spaceports.com/~prozack/images/options_over.pnghttp://www.scorpius.spaceports.com/~prozack/images/about_over.png
http://www.scorpius.spaceports.com/~prozack/images/exit_over.png

oh, and please dont copy and use any of these, cos they are all mine and are all original... thanks

If Quizz's Are Quizzical, Then What Are Test's?
Jess T
Retired Moderator
21
Years of Service
User Offline
Joined: 20th Sep 2003
Location: Over There... Kablam!
Posted: 26th Sep 2003 06:43
I just realised that the window comands are for the Enhancement pack only... here is the code that should work without the enhancement pack...



and also, in the last few lines of code for the one WITH the window (the code which placed in a previouse message), you'll need to change the last bit to this. The delete image just helps DB run faster...



If Quizz's Are Quizzical, Then What Are Test's?

Login to post a reply

Server time is: 2025-05-20 21:06:51
Your offset time is: 2025-05-20 21:06:51