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 Professional Discussion / Need help on a point system

Author
Message
ViktorLazarev
13
Years of Service
User Offline
Joined: 20th Feb 2013
Location: On a PC Runing OSx with a VBox Linux :D
Posted: 15th Mar 2013 16:37
Herro everyone, I'm making a quiz game , and I need a point system, but I don't know how to do it. Can anyone help me?

http://youtube.com/user/ViktorLazarev
Life is never good without a computer.
Derek Darkly
14
Years of Service
User Offline
Joined: 22nd Sep 2011
Location: Whats Our Vector, Victor?
Posted: 15th Mar 2013 17:36
If there are multiple players then you will want to make an array:


DIM Score(n)

"n" represents the number of players

D.D.
Sergey K
22
Years of Service
User Offline
Joined: 4th Jan 2004
Location:
Posted: 15th Mar 2013 17:38
point system? just like a mouse?

if so; try this code


Advanced Updater for your games!
Sph!nx
17
Years of Service
User Offline
Joined: 3rd Dec 2008
Location: The Netherlands
Posted: 16th Mar 2013 12:14
A believe Viktor means a score system. As Derek suggested, I would use an array for that to store every player with all additional data (like score).

Regards Sph!nx
www.mental-image.net
ViktorLazarev
13
Years of Service
User Offline
Joined: 20th Feb 2013
Location: On a PC Runing OSx with a VBox Linux :D
Posted: 18th Mar 2013 16:12
What I meant is how to use a point system in a quiz-ish game. Its a one player game, and I have no idea how to make an array on scoring.

http://youtube.com/user/ViktorLazarev
Life is never good without a computer.
Chris Tate
DBPro Master
17
Years of Service
User Offline
Joined: 29th Aug 2008
Location: London, England
Posted: 18th Mar 2013 16:28 Edited at: 18th Mar 2013 16:30
Derek showed you how to create an array, now you need a plan.

You need to design concepts like this in plain english (or what ever language you speak), then translate. You may not always need to design on paper, but once you work out the logic and flow, the programming becomes easier.

Here is a design for your problem. As you get more capable, simple designs like this can be created in your mind; but for now, write it out.



Now that is one way to create a quiz, there are loads of ways; other people will handle it differently.

Write out the way you want it to work. Copy each statement as a comment in DBP, then use that to guide your programming.

Libervurto
20
Years of Service
User Offline
Joined: 30th Jun 2006
Location: On Toast
Posted: 18th Mar 2013 23:41
What's with all the ridiculously vague calls for help on this board? If you ask vague questions you're only going to get vague answers.

Quote: "What I meant is how to use a point system in a quiz-ish game. Its a one player game, and I have no idea how to make an array on scoring."

This is still pretty vague. How does the scoring system work? Do you get a set number of points for answering each question correctly, or are some questions more valuable than others (e.g. bonus questions, different difficulties)? Does the amount of points awarded depend on how long the player takes to answer the question? Are there different scores to keep track of, maybe for different categories? Are there other elements to the game, besides questions, (like most game-shows) that we might need to consider?

A simple game can have many possibilities. This is what makes coding fun after all!


Mobiius
Valued Member
23
Years of Service
User Offline
Joined: 27th Feb 2003
Location: The Cold North
Posted: 19th Mar 2013 14:57
Check out the post I made here... where I made a very simple quiz engine with scoring.

I live for video games! (And beers, and football, and cars!)
See what I live for here: [url]http:\\www.TeamDefiant.co.uk[/url]
ViktorLazarev
13
Years of Service
User Offline
Joined: 20th Feb 2013
Location: On a PC Runing OSx with a VBox Linux :D
Posted: 26th Mar 2013 03:00
I did something simpler!


http://youtube.com/user/ViktorLazarev
Life is never good without a computer.
Mobiius
Valued Member
23
Years of Service
User Offline
Joined: 27th Feb 2003
Location: The Cold North
Posted: 26th Mar 2013 20:22
Your code will fail, as you never return from your gosub.

I live for video games! (And beers, and football, and cars!)
See what I live for here: [url]http:\\www.TeamDefiant.co.uk[/url]
pcRaider
19
Years of Service
User Offline
Joined: 30th May 2007
Location:
Posted: 27th Mar 2013 01:23
ok



windowsXp
Mobiius
Valued Member
23
Years of Service
User Offline
Joined: 27th Feb 2003
Location: The Cold North
Posted: 27th Mar 2013 21:10
At least mine is usable and expandable in the real world. lol

I live for video games! (And beers, and football, and cars!)
See what I live for here: [url]http:\\www.TeamDefiant.co.uk[/url]
ViktorLazarev
13
Years of Service
User Offline
Joined: 20th Feb 2013
Location: On a PC Runing OSx with a VBox Linux :D
Posted: 27th Mar 2013 21:52
I put it in my game, and it works perfectly!

http://youtube.com/user/ViktorLazarev
Life is never good without a computer.

Login to post a reply

Server time is: 2026-07-07 10:13:46
Your offset time is: 2026-07-07 10:13:46