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.

Newcomers DBPro Corner / Mouseclick Game Menues?

Author
Message
culmor30
17
Years of Service
User Offline
Joined: 16th Jun 2007
Location: In my head.
Posted: 21st Jun 2007 05:57
How would I make a menu with say... 2 buttons? Play and Exit?

I really don't care about how it looks, I just want to know.

I mean I can make the menu, it's just, after that's done, how do I get it to switch to game mode? Using that evil gosub command I've never understood?
indi
22
Years of Service
User Offline
Joined: 26th Aug 2002
Location: Earth, Brisbane, Australia
Posted: 21st Jun 2007 06:57 Edited at: 21st Jun 2007 06:57
Since you have not supplied enough information if the game is in 2d or 3d i will assume you want it in 3d.

If you have not explored gosubs and functions with TDK's tutorials this will make no sense whatsoever.

I would suggest you do all of TDK's tutorials before getting too deep. You need to learn the concepts of functions / arrays etc, or your going to only hurt your programming ability.

anyway here we go.


TDK
Retired Moderator
22
Years of Service
User Offline
Joined: 19th Nov 2002
Location: UK
Posted: 21st Jun 2007 18:41
If you can't find the In-Game Menu Tutorial, it's number 16 here:

Beginners Tutorials For DBC & DBP

TDK_Man

Jrock
18
Years of Service
User Offline
Joined: 20th Feb 2006
Location: Riven
Posted: 22nd Jun 2007 05:07
If you think you can handle it, I would use sprites. Just position a dummy sprite at the mouse position and determine if it has a colliion event with your menu items.

Practice makes perfect. But if nobody is perfect, why practice?
culmor30
17
Years of Service
User Offline
Joined: 16th Jun 2007
Location: In my head.
Posted: 22nd Jun 2007 07:52
Alright, thanks. I'll try the suggestions you gave me. I'm a pretty experienced coder in come other languages, just new to this one.

Login to post a reply

Server time is: 2024-11-25 15:53:23
Your offset time is: 2024-11-25 15:53:23