Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
score
#1
:evil: i kno im an idiot but how do i put a score thing up i figure that if i put say score% then added a bit on each time it would work but i havnt been able to do the second thing can som1 help :evil:
evil: tell me if this hurts :evil:
Reply
#2
Do you mean a score which increases during playing and then is saved in a file till it's loaded again when the player starts gaming again???
B 4 EVER
Reply
#3
When I was your age.... I just looked in the QB Help, since there was no qbasicnews.com back thne.......
Peace cannot be obtained without war. Why? If there is already peace, it is unnecessary for war. If there is no peace, there is already war."

Visit www.neobasic.net to see rubbish in all its finest.
Reply
#4
I looked at the QB help 'cause there wasn't even internet back then Big Grin

http://qbasicnews.com/qboho/
SCUMM (the band) on Myspace!
ComputerEmuzone Games Studio
underBASIC, homegrown musicians
[img]http://www.ojodepez-fanzine.net/almacen/yoghourtslover.png[/i
Reply
#5
like this?
Code:
CLS

DO
LOCATE 1, 5: PRINT score
IF score = 10 THEN PRINT "YOU WIN!"
INPUT a
IF a = INT(RND * 2) + 1 THEN score = score + 1 ELSE score = score - 1
LOOP
[Image: sig.php]
Back by popular demand!
I will byte and nibble you bit by bit until nothing remains but crumbs.
Reply
#6
See if you can follow this 'game'. Type 999 to quit.

Code:
DO

  ' This generates some random numbers between 1 and 12 for a% and b%
   a% = INT(RND * 12) + 1
   b% = INT(RND * 12) + 1

   'display the score
   PRINT "Your score:"; score%

   'print the next question
   PRINT a%; "x"; b%;

   'request input for answer
   INPUT "= ", answer%

   'quit on 999
   IF answer% = 999 THEN EXIT DO

   'update the score if correct
   IF answer% = a% * b% THEN score% = score% + 1 'update score

LOOP
In a world without walls and doors, who needs Windows and Gates?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)