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 / Text Game Help

Author
Message
Lemming
21
Years of Service
User Offline
Joined: 5th Mar 2003
Location:
Posted: 9th Mar 2003 04:14
Hi, Lemming here.
I'm new to DB and made my first text game. It was a game where you tried to guess a number and if you did't guess it, it told you HIGHER or LOWER until you did. But after so many guesses, the text ran below the screen. Any idea on how to make the screen keep up with the text?
Dark Basic is better then Dim Basic.
<(^_^)>
John H
Retired Moderator
21
Years of Service
User Offline
Joined: 14th Oct 2002
Location: Burlington, VT
Posted: 9th Mar 2003 04:41
After X amount of guesses just type CLS to clear the screen. Just have a variable like input# and every time you guess then input#=input#+1

Then, if input > 20 then CLS

RPGamer

Current - RPG: Eternal Destiny
http://www.halbrosproductions.netfirms.com
Dont ask those questions! Read the help files lazy! Oh ya, and Tat has a plugin for that!
Steverino
22
Years of Service
User Offline
Joined: 27th Aug 2002
Location: United States
Posted: 9th Mar 2003 04:43
Steverino
22
Years of Service
User Offline
Joined: 27th Aug 2002
Location: United States
Posted: 9th Mar 2003 04:50
Actually, forget that. It doesn't seem to work in DB Pro. Worked great in DB classic, though.

Surrealist writing toy -- http://www.iconpoet.com
Lemming
21
Years of Service
User Offline
Joined: 5th Mar 2003
Location:
Posted: 9th Mar 2003 19:54
It doesn't seem to work. Here is my game. can you tell me what's wrong with it?


Dark Basic is better then Dim Basic.
<(^_^)>
PiratSS
21
Years of Service
User Offline
Joined: 18th Oct 2002
Location:
Posted: 9th Mar 2003 20:59


That should work. I can't test it, so you might tell me if it does.


Toughest line of codecol$=asc(left(Pcol$)),1+str$(rev)+chr(80)+left(right(mid(name$),1),1)
Lemming
21
Years of Service
User Offline
Joined: 5th Mar 2003
Location:
Posted: 9th Mar 2003 21:12
Nope PiratSS. It doesn't work. When I try to run it, it says "LABEL NAME IS NOT VALID"
Thanks anyway.

Dark Basic is better then Dim Basic.
<(^_^)>
PiratSS
21
Years of Service
User Offline
Joined: 18th Oct 2002
Location:
Posted: 10th Mar 2003 04:08
???

I just tested for both DB and DBPro, the code works.

You sure you copied everything?


Toughest line of codecol$=asc(left(Pcol$)),1+str$(rev)+chr(80)+left(right(mid(name$),1),1)
Lemming
21
Years of Service
User Offline
Joined: 5th Mar 2003
Location:
Posted: 10th Mar 2003 23:42
Yah your right it does work. I must have copied it wrong. But I made the user input a random number for a reason. In your game, the number I had to guess was in the zillions. While in mine, the higher the number you input into the "ENTER A RANDOM NUMBER" area, the harder it is. And vice versa. But thanks for showing me how to clear it after so many guesses.

Dark Basic is better then Dim Basic.
<(^_^)>
PiratSS
21
Years of Service
User Offline
Joined: 18th Oct 2002
Location:
Posted: 11th Mar 2003 00:30
zillions?? it's random between 1-10(no zero).You can easily change that too.


Toughest line of codecol$=asc(left(Pcol$)),1+str$(rev)+chr(80)+left(right(mid(name$),1),1)
Lemming
21
Years of Service
User Offline
Joined: 5th Mar 2003
Location:
Posted: 11th Mar 2003 00:37
I don't think so. When I loaded the game it said "Your number is Higher!" for 1000. I kept going higher until I reached 10000000000. That is when I quit. Could it be that I'm only using the Trial DB?

Dark Basic is better then Dim Basic.
<(^_^)>
PiratSS
21
Years of Service
User Offline
Joined: 18th Oct 2002
Location:
Posted: 12th Mar 2003 21:55
oh sry,

that's my mistake. I thought it was too high or too low, not higher or lower.


This should work.


Toughest line of codecol$=asc(left(Pcol$)),1+str$(rev)+chr(80)+left(right(mid(name$),1),1)
Lemming
21
Years of Service
User Offline
Joined: 5th Mar 2003
Location:
Posted: 12th Mar 2003 23:45
Yah. Now it works. Thanks. <(^_^)>

Dark Basic is better then Dim Basic.
<(^_^)>

Login to post a reply

Server time is: 2024-09-19 22:47:28
Your offset time is: 2024-09-19 22:47:28