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

Author
Message
steve c
21
Years of Service
User Offline
Joined: 30th Jan 2004
Location: united kingdom
Posted: 28th Apr 2004 21:53
i need menu screen code pls ive got a backround and now i want to make parts of the pic buttons pls help

i used to be indecisive but now ime not so sure
Phaelax
DBPro Master
22
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 28th Apr 2004 23:20
check the code base

"eureka" - Archimedes
steve c
21
Years of Service
User Offline
Joined: 30th Jan 2004
Location: united kingdom
Posted: 28th Apr 2004 23:23
i alredy did searched for menu code and such but i couldent find anything

i used to be indecisive but now ime not so sure
Don Malone
22
Years of Service
User Offline
Joined: 27th Apr 2003
Location: Birmingham, Alabama
Posted: 29th Apr 2004 03:33
make your search less specific.

Search for Menu

Got five hits (one for classic)

See if this is what you need to build on
http://darkbasic.thegamecreators.com/?m=codebase_view&i=71c0d7b7014312e94ce8a588488c9168

Wasting CPU Cycles since the 286 was a hot machine.
steve c
21
Years of Service
User Offline
Joined: 30th Jan 2004
Location: united kingdom
Posted: 29th Apr 2004 21:20
thanks but can u just tell me how to make a button and it will be a lot easier pls

i used to be indecisive but now ime not so sure
THijs681
21
Years of Service
User Offline
Joined: 24th Feb 2004
Location: somewhere on the earth
Posted: 30th Apr 2004 10:52 Edited at: 30th Apr 2004 10:55

this is a simple menu, you can add more features if you want, this is a start, if you need more help, just ask me.
M00NSHiNE
21
Years of Service
User Offline
Joined: 4th Aug 2003
Location: England, UK
Posted: 30th Apr 2004 16:41
If you want clickable buttons, declare an aray called buttons(number of buttons, 4). Then in that array store the button number (1 might be new game, 2 might be load etc) and in buttons(~, 1) store the topmost pixel index of the button, in 2 store the leftmost, in 3 stiore the lowest and in 4 store the rightmost.

The you check to see if mouse position is greater than buttons(~,1) and (~,2) and less than buttons(~,3) and (~,4) and then if your mouse is clicked in that zone then you go to whatever the button should go to. Sorry if you dont understand but im a little short of time.

steve c
21
Years of Service
User Offline
Joined: 30th Jan 2004
Location: united kingdom
Posted: 1st May 2004 00:35
thanks all i am gonna use THijs681 one and just adapt fromit if it is okay by him ill post u back if i need any more help thanks

i used to be indecisive but now ime not so sure
steve c
21
Years of Service
User Offline
Joined: 30th Jan 2004
Location: united kingdom
Posted: 1st May 2004 00:43
k need help already u know play game gose into my game well i need it so options goese into options u know pls help

i used to be indecisive but now ime not so sure
THijs681
21
Years of Service
User Offline
Joined: 24th Feb 2004
Location: somewhere on the earth
Posted: 1st May 2004 19:46
tip: if you make it
like this:

PLAY GAME

OPTIONS

EXIT

it is realy hard, you also can do this, to make it easier:
PlAY GAME-OPTIONS-EXIT

try a litle bit, if you still can't figure it out, i will give you some more help, perhaps, you can e-mail me to: [email protected]

Other people, don't use my adress, cuz i delete all unexpected e-mails
THijs681
21
Years of Service
User Offline
Joined: 24th Feb 2004
Location: somewhere on the earth
Posted: 2nd May 2004 13:14
here, try



if you don't like it, i will change it.
steve c
21
Years of Service
User Offline
Joined: 30th Jan 2004
Location: united kingdom
Posted: 2nd May 2004 13:32
i like it but if u click options more than once then they keep coming up like however many times u click it

i used to be indecisive but now ime not so sure
THijs681
21
Years of Service
User Offline
Joined: 24th Feb 2004
Location: somewhere on the earth
Posted: 2nd May 2004 15:30 Edited at: 2nd May 2004 15:31
Woops, this will fix it,



i hope this will help you a lot, i can help you with your game, if it is gona be an rpg or 3rd person, i don't know anything about first-person, so i can't help you with that.
steve c
21
Years of Service
User Offline
Joined: 30th Jan 2004
Location: united kingdom
Posted: 2nd May 2004 20:39
sorry its an fps but i am really really gratefull for your help

i used to be indecisive but now ime not so sure
THijs681
21
Years of Service
User Offline
Joined: 24th Feb 2004
Location: somewhere on the earth
Posted: 3rd May 2004 11:06 Edited at: 3rd May 2004 11:11
no problem
steve c
21
Years of Service
User Offline
Joined: 30th Jan 2004
Location: united kingdom
Posted: 3rd May 2004 16:40
and i will put u in credits everyone thats helped me aswell

i used to be indecisive but now ime not so sure
THijs681
21
Years of Service
User Offline
Joined: 24th Feb 2004
Location: somewhere on the earth
Posted: 5th May 2004 19:01
thx

Login to post a reply

Server time is: 2025-05-23 14:32:58
Your offset time is: 2025-05-23 14:32:58