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 / the japanese quiz

Author
Message
vid1987
19
Years of Service
User Offline
Joined: 5th Jan 2005
Location: Oklahoma
Posted: 13th Jan 2005 09:25
Hello I have built a japanese quiz game its really awesome and i only built it within an hour. its like a guessing game but it repeats the same questions in the same order and i cant figure out how to randomize that. check out my code and fix it to randomize please?


Vid
vid1987
19
Years of Service
User Offline
Joined: 5th Jan 2005
Location: Oklahoma
Posted: 13th Jan 2005 12:00
Someone respond.. for the love of God help me please...

Vid
Phaelax
DBPro Master
21
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 13th Jan 2005 21:45
Since your images range from 1 to 10 to match questions 1 to 10, you can easily set up an array to store all the answers, then just grab a random number between 1 and 10.



You could also use an array list so that no questions are asked twice until all questions have been answered at least once.

"eureka" - Archimedes
vid1987
19
Years of Service
User Offline
Joined: 5th Jan 2005
Location: Oklahoma
Posted: 13th Jan 2005 22:42
Thanks Phaelax I'll try and remember how to do that.
Peace

Vid
vid1987
19
Years of Service
User Offline
Joined: 5th Jan 2005
Location: Oklahoma
Posted: 14th Jan 2005 01:02
How do you make the code where people can download it and play the game?

Vid
Ric
20
Years of Service
User Offline
Joined: 11th Jul 2004
Location: object position x
Posted: 14th Jan 2005 06:32
You'll need a webhost to upload it to.


1tg46
20
Years of Service
User Offline
Joined: 1st Feb 2004
Location: I dont know!
Posted: 16th Jan 2005 11:01
or upload it to the forums, and then people can download the program.


Click sig for DarkBASIC Network IDE.
vid1987
19
Years of Service
User Offline
Joined: 5th Jan 2005
Location: Oklahoma
Posted: 21st Jan 2005 03:55
how

Vid
Emperor Baal
20
Years of Service
User Offline
Joined: 1st Dec 2003
Location: The Netherlands - Oudenbosch
Posted: 22nd Jan 2005 18:59
You can either find a webhost, such as geocities, and upload your file to it.

Or, you can use the attachment function on this forum. When you press reply you can add an attachment with a 1MB maximum file size.

1 more thing, remove c:/ from the load image commands, and put the executable (.exe + code) in the same directory as the images. This will allow other users to use your program.

The reason why you would want to do this is simple, other users probably dont have the images in the same directory on their harddrive (this case c:\)

So, zip up the executable (.exe) and the images and you can upload it here hopefully.

BTW, you probably want to take a look at my site, there's a hiragana teaching tool + source code + media files ready for downloading.

http://www.nuclearpublishing.com/hosting/emperorbaal/

you can find it under [projects/games]

Login to post a reply

Server time is: 2024-11-27 21:35:28
Your offset time is: 2024-11-27 21:35:28