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.

Author
Message
timer help
12
Years of Service
User Offline
Joined: 14th Jan 2014
Location:
Posted: 24th Mar 2014 18:03
I am posting this again since my last post got viewbotted. Basically I am trying to make a menu for my quiz game. I got this code off a website and it works in my game. I have one problem though, I am trying to make the menu so that it goes to each quiz. I have tried to gosub it and it still does not work. Here is what im trying to add:



This is my whole code (with all the gosubs and such)



Any helpers
tiffer
20
Years of Service
User Offline
Joined: 6th Apr 2006
Location: Scotland
Posted: 24th Mar 2014 18:26
It seems you didn't heed the advice given on your previous thread.

Cwatson
Sasuke
20
Years of Service
User Offline
Joined: 2nd Dec 2005
Location: Milton Keynes UK
Posted: 24th Mar 2014 18:30
You haven't stated what the problem is, just that there is a problem so alittle info would be nice. Also your main loop does nothing other than displaying the selected item so it won't execute any of your quiz's.

"Get in the Van!" - Van B
timer help
12
Years of Service
User Offline
Joined: 14th Jan 2014
Location:
Posted: 24th Mar 2014 18:34
Well its kind of a problem, I am trying to make the quiz so that it goes to the selected subject. If you run the game currently, you notice that if you click one of the numbers it doesn't go to the selected subject. Basically I am trying to make it so if you click on one of the numbers it goes to the subject.
Sasuke
20
Years of Service
User Offline
Joined: 2nd Dec 2005
Location: Milton Keynes UK
Posted: 24th Mar 2014 18:40 Edited at: 24th Mar 2014 18:40
You have to execute the gosubs in your main loop, this is all that's in yours:


All that does is display the menu and show the selected menu item. You need to actual run a gosub.

"Get in the Van!" - Van B
tiffer
20
Years of Service
User Offline
Joined: 6th Apr 2006
Location: Scotland
Posted: 24th Mar 2014 18:48
Sasuke the first code snippet is someone else's code. The OP has no idea how it works.

Cwatson
Sasuke
20
Years of Service
User Offline
Joined: 2nd Dec 2005
Location: Milton Keynes UK
Posted: 24th Mar 2014 18:55
Quote: "Sasuke the first code snippet is someone else's code. The OP has no idea how it works."


Oh I see. Huh... okay so there's no point giving advice if there not gonna understand it. Also to explain from scratch would take awhile. The answer here would be they need to start with the basics of DBP coding and build from there.

"Get in the Van!" - Van B
Sasuke
20
Years of Service
User Offline
Joined: 2nd Dec 2005
Location: Milton Keynes UK
Posted: 24th Mar 2014 20:46
Again with the strange view count

"Get in the Van!" - Van B
tiffer
20
Years of Service
User Offline
Joined: 6th Apr 2006
Location: Scotland
Posted: 24th Mar 2014 21:05
The likeness of a failed dos. Probably one of his schoolmates playing a prank.

Cwatson
Phaelax
DBPro Master
23
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 24th Mar 2014 23:08
For starters, the SubjectSelect subroutine is all messed up. You should not put functions inside of it. And you shouldn't need any loops inside it either.

The structure is there and you can easily add a menu for selecting the test you want. In fact, I thought we already did this before?

The Main loop:



And here's the subroutine for displaying a simple menu.


timer help
12
Years of Service
User Offline
Joined: 14th Jan 2014
Location:
Posted: 25th Mar 2014 17:57 Edited at: 25th Mar 2014 18:19
Is there any way to make the 3D menu work with the subject select though? Also, the code you gave me doesn't work properly. All the text is bundled up in one area for some reason.
ShellfishGames
13
Years of Service
User Offline
Joined: 6th Feb 2013
Location:
Posted: 25th Mar 2014 18:29
Quote: "All the text is bundled up in one area for some reason."


A reason that's really easy to find out.



All the coordinates are the same. Come one, you could have figured that out yourself, and you can fix that yourself. You're certainly capable and it's a matter of about 5 seconds. I get the feeling you're not believing in yourself enough, if you don't even try.

Quote: "Is there any way to make the 3D menu work with the subject select though?"


Generally speaking, of course there is. But you're really asking for a lot here - basically you want somebody else to comprehend that code that you found somewhere and explain it to you (or even better, write working code for you). And with all due respect, I know better ways to spend my time - especially given that this seems to be a project all about learning to code and the outcome isn't even that important.

tiffer
20
Years of Service
User Offline
Joined: 6th Apr 2006
Location: Scotland
Posted: 25th Mar 2014 22:26
I know it sounds like I'm being harsh but I'm honestly saying this for your own good. If you want to progress to become a games developer you seriously need to re adjust your attitude. All the time you've spent messing around on this forum you should be trying to figure this out. If you're not interested in doing it then what are you even doing here?

Cwatson
timer help
12
Years of Service
User Offline
Joined: 14th Jan 2014
Location:
Posted: 26th Mar 2014 17:11
I am here because I am in a class at school. Currently I have a game that is due in about 2 weeks and since I just started learning this code, I need help. Of course when I cant run my game and there's nothing to do, I have fun. If its not affecting anyone, it shouldn't be a problem.

Login to post a reply

Server time is: 2026-07-06 20:16:16
Your offset time is: 2026-07-06 20:16:16