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
stormtrooper
23
Years of Service
User Offline
Joined: 24th Nov 2002
Location: United States
Posted: 5th Apr 2003 01:01
Can anyone tell me why when I use this code the cursor will leave lines under some of the numbers? The code is from the DB book


Scott Wolfe
andrew11
23
Years of Service
User Offline
Joined: 23rd Feb 2003
Location: United States
Posted: 5th Apr 2003 02:37 Edited at: 5th Apr 2003 02:37
It's not a problem with the code - Its an INPUT problem. That has always happened to me. Live with it or make your own input function.

All programmers are playwrights and all computers are lousy actors." -Anon.
<--- Uh... Um... Oh I forgot
Andy Igoe
23
Years of Service
User Offline
Joined: 6th Oct 2002
Location: United Kingdom
Posted: 5th Apr 2003 02:43
You might have some luck fiddling around with backdrop commands or something, but personally I find input doesn't meet my needs so I never use it (it doesn't allow the program to keep running in the background)

This is the hi-score entry function from Episode V: Battle for Hoth. It's a very simple routine and enters the players name in to an array for the position of the high-score chart they are in (the array is hiName$(position)).

When the user presses Enter the routine returns a value of 2 - so in the mainloop you would do something like.



Failing that just adapt it to something more suiteable for your needs.



Pneumatic Dryll, Outrageous epic cleric of EQ/Xev
God made the world in 7 days, but we're still waiting for the patch.
Shadow Robert
23
Years of Service
User Offline
Joined: 22nd Sep 2002
Location: Hertfordshire, England
Posted: 5th Apr 2003 02:45
don't forget the input buffer either (^_^)

Tsu'va Oni Ni Jyuuko Fiori Sei Tau!
One block follows the suit ... the whole suit of blocks is the path ... what have you found?
stormtrooper
23
Years of Service
User Offline
Joined: 24th Nov 2002
Location: United States
Posted: 6th Apr 2003 02:09
Well I'm just learning DBP and using the book that is out and am running code from the book so I can live with it for now, when I start doing more then I will work around it or make an input function. Is this going to be fixed in a future patch?

Scott Wolfe

Login to post a reply

Server time is: 2026-07-11 02:35:48
Your offset time is: 2026-07-11 02:35:48