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 / I need menu code!!!

Author
Message
himynameisali
21
Years of Service
User Offline
Joined: 9th Nov 2003
Location: England, You...Rastards!
Posted: 7th Apr 2004 22:36
For pacman x, Please can I have the menu code? when highlited, play sound aswell?

( KA-BOOM! ) Nukesoft Interactive
blaxkx
21
Years of Service
User Offline
Joined: 4th Apr 2004
Location:
Posted: 7th Apr 2004 22:46
Just to give you a small tip, if you wan't help with codes please at lease show that you put an effort into trying to make the menu yourself.

Post the code you tried to use and there should be people more then happy to help you.

A lot of people don't like to give hand outs when it comes to codes, just show us what you did and we can help.

One Common Ruin
21
Years of Service
User Offline
Joined: 19th Jan 2004
Location: United States
Posted: 8th Apr 2004 07:38
This is an example of "Gimmie teh codez". Maybe you should ask for some help explaining how to make a menu instead of asking for the code.

Zink

There is no patch for human stupidity.
himynameisali
21
Years of Service
User Offline
Joined: 9th Nov 2003
Location: England, You...Rastards!
Posted: 8th Apr 2004 13:20
so you are not going to help me?

hmm, fine, be that way

( KA-BOOM! ) Nukesoft Interactive
Egyptian Mua
21
Years of Service
User Offline
Joined: 7th Apr 2004
Location: htdocs
Posted: 9th Apr 2004 01:40
First of all I am not vary good at dark basic but let me try to help useing the help part of DB.

For the sound try the load sound and play sound commands.
And I don't know about the menu try the help commands.

-Egyptianmua
Egyptian Mua
21
Years of Service
User Offline
Joined: 7th Apr 2004
Location: htdocs
Posted: 9th Apr 2004 01:46
Go to the bottom of this form and I think someone down there knows how to do the menus.

-Egyptianmua
Blanked
21
Years of Service
User Offline
Joined: 27th Mar 2004
Location: UK
Posted: 9th Apr 2004 05:15
nukesoft you are being spoilt, you can't expect someone to give you code like that, if you want help from someone you've gotta show that you've tried or rephrase your topic to
"I need help with menu code" and then say
"For pacman x, can someone suggest to me on how i can go about making a menu? when highlited, play sound aswell?".

How are you going to learn if someone codes it for you?
himynameisali
21
Years of Service
User Offline
Joined: 9th Nov 2003
Location: England, You...Rastards!
Posted: 9th Apr 2004 23:48
well OBVIOISLY I can't , oh well!

( KA-BOOM! ) Nukesoft Interactive
Zero Blitzt
21
Years of Service
User Offline
Joined: 18th Jan 2004
Location: Different Stages
Posted: 10th Apr 2004 00:52
You couldve at least made an effort. I mean, even an effort at looking at some tutorials. Menu's aren't hard, especially with Yellow's menu tutorial.

http://www.t4e0.4cybiko.com- GameXaero Forums
http://www.t4e0.4cybiko.com/gxstudios - GX Studios
FROGGIE!
21
Years of Service
User Offline
Joined: 4th Oct 2003
Location: in front of my computer
Posted: 10th Apr 2004 15:21
if your that desparate for code try codebase

my games are only as good as the people who play them...
so if my game is crap then its your f******g fault!
dragon tail
21
Years of Service
User Offline
Joined: 23rd Jul 2003
Location: United Kingdom
Posted: 10th Apr 2004 20:38 Edited at: 10th Apr 2004 20:39
Froggie is right, but heres a quick solution. You could create a background image, then lay menu text on top. Then find out the position of the mouse by using:

print mousex()
print mousey()


Now run your menu program and note the coordinates of the text.
eg.

y
^
|
|
| *------------
| -text here-
| ------------+
|
--------------> x

Note the cooridinates of the astrisk and cross.

Back to your program. All you have to do now is to use the IF command to check if the mouse is on the text. This is done by seeing if the x value of the mouse is larger than x value of the astrisk and smaller than the x value of the cross and also if the y value of the mouse is bigger than the y value of the cross, but samller than the y value of the astrisk.

No repeat for each single text item on the menu. To get the sound, if the mouse is over your text, then hilight the text, and play a sound. simple.

dragontail

[edit: made the ASCII look better ]

Current Rig:
P4 2.4GHz | 512MB DDR333 RAM | 80GB BarracudaIV | Geforce4 Ti4600 128MB | XP pro SP1
please help the newb
MikeS
Retired Moderator
22
Years of Service
User Offline
Joined: 2nd Dec 2002
Location: United States
Posted: 11th Apr 2004 05:56
NukeSoft, I believe I've already helped you with this problem once before.

See my site (Link is on signature), and you'll find enough tutorials to get you started for a long long time.



A book? I hate book. Book is stupid.
(Formerly known as Yellow)
KC27
21
Years of Service
User Offline
Joined: 18th Mar 2004
Location:
Posted: 11th Apr 2004 07:26
There is a program called the DarkBASIC Interface Builder, you may want to check it out.

himynameisali
21
Years of Service
User Offline
Joined: 9th Nov 2003
Location: England, You...Rastards!
Posted: 11th Apr 2004 13:20
ok, I'll check out MikeS's point of view

( KA-BOOM! ) Nukesoft Interactive
himynameisali
21
Years of Service
User Offline
Joined: 9th Nov 2003
Location: England, You...Rastards!
Posted: 11th Apr 2004 13:20
sorry i was being mean (if i was)

( KA-BOOM! ) Nukesoft Interactive
BearCDPOLD
21
Years of Service
User Offline
Joined: 16th Oct 2003
Location: AZ,USA
Posted: 11th Apr 2004 22:04
It's all good. Just chill........listen to some easy Duke Ellington...mmmmmm.

Crazy Donut Productions, Current Project: KillZone
Web Site Button Does Not Work, Visit Here: http://www.geocities.com/crazydonutproductions/index.html

Login to post a reply

Server time is: 2025-05-23 06:08:54
Your offset time is: 2025-05-23 06:08:54