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 / menu not showing up

Author
Message
Chief Voyager
23
Years of Service
User Offline
Joined: 20th Mar 2003
Location: United States
Posted: 8th Apr 2003 23:43 Edited at: 8th Apr 2003 23:54
i have this function here that brings up a menu when you hit the f1 key:



and in my game loop i have the command if keystate(59) = 1 then menu()

now when i hit the f1 key, i don't see my menu, and i still have control of my game, as if the loop in my function isn't working. i tried the same code out as a subroutine but i got the same results. the .bmp for my menu is in my projects folder. what do i need to do? thanx in advance.

man, i got more problems with this. o.k. i tried the thing again. i have to hold down the f1 key to get my menu commands to work, but i still don't see the menu, and when i switch to windowed mode from my 'menu', i get the window but my game is gone! so i compiled the code into an exe to try it out, and when i did the windowed mode from the menu, i could see my objects and world, but all of my textures were gone! what's up with this?

You're ate up like a soup sandwich.
Chief Voyager
23
Years of Service
User Offline
Joined: 20th Mar 2003
Location: United States
Posted: 9th Apr 2003 04:07
please, i really need help with this.

You're ate up like a soup sandwich.
indi
23
Years of Service
User Offline
Joined: 26th Aug 2002
Location: Earth, Brisbane, Australia
Posted: 9th Apr 2003 08:10
add a sync where u want it update the display

Chief Voyager
23
Years of Service
User Offline
Joined: 20th Mar 2003
Location: United States
Posted: 9th Apr 2003 21:07 Edited at: 9th Apr 2003 21:09
thanx indi, i can't believe that i forgot something as simple as sync. but i still can't get my menu to show up. is their something wrong with my bitmap commands?

i've posted source here at the bottom. i see one thing that i'm doing wrong, too much craziness in my loop there. can i have subroutines in a function?

You're ate up like a soup sandwich.
Chief Voyager
23
Years of Service
User Offline
Joined: 20th Mar 2003
Location: United States
Posted: 10th Apr 2003 03:01
any more help?

You're ate up like a soup sandwich.
indi
23
Years of Service
User Offline
Joined: 26th Aug 2002
Location: Earth, Brisbane, Australia
Posted: 10th Apr 2003 03:55
If you make a zip of the source
with the correct media I can help you properly.


just the menu source and the media in that space is required.

John H
Retired Moderator
23
Years of Service
User Offline
Joined: 14th Oct 2002
Location: Burlington, VT
Posted: 10th Apr 2003 04:34
I always use sprites when I have 3D. So then you can show and hide sprites. I also use GOTO and GOSUB for menus, instead of functions. Faster in classic I think. So, it seems that your proggy seems to be missing the loop. It works for me if I...

If keystate(x)=1 then gosub menu

loop

menu:
do
mystuff
loop
return

What about you? Worth I try I guess.....

Cheers!

RPGamer

Current Project: Eternal Destiny
Tech Demo - Colan Island: Currently 716 Lines
Chief Voyager
23
Years of Service
User Offline
Joined: 20th Mar 2003
Location: United States
Posted: 10th Apr 2003 06:55
i could make a zip if you like, my problem is that i don't have a website or anything for you to download it from unless you want me to e-mail it to you. i would be VERY glad to do this because i really want this to work. thanx.

You're ate up like a soup sandwich.
indi
23
Years of Service
User Offline
Joined: 26th Aug 2002
Location: Earth, Brisbane, Australia
Posted: 10th Apr 2003 07:19

Login to post a reply

Server time is: 2026-06-11 15:09:08
Your offset time is: 2026-06-11 15:09:08