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 / Question for IanM

Author
Message
FieldDoc
23
Years of Service
User Offline
Joined: 30th May 2003
Location: London, UK
Posted: 21st Jun 2003 22:37 Edited at: 21st Jun 2003 22:38
Hi!

I am using your excellent BoxInput function (real time text input) but I have a question about it. Is there any way to make it more, um, responsive? It works fine if you type fairly slowly but if you type at any reasonable speed, it drops letters, spaces, etc. The code snippet below is the function (in case you have forgotton it).
I only ask coz the game I am making requires text to be typed very frequently.



Thanks

Life is like a penis:
When it's soft you can't beat it, when it's hard you get screwed.
MrTAToad
23
Years of Service
User Offline
Joined: 26th Aug 2002
Location: United Kingdom
Posted: 21st Jun 2003 22:40 Edited at: 21st Jun 2003 22:41
I think you'll find that the INC CursorTick,500 line would need to be change...

However, I could be totally wrong...

Good news everyone! I really am THAT good...
http://www.nickk.nildram.co.uk/ for great plug-ins - oh my, yes!
IanM
Retired Moderator
23
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 21st Jun 2003 22:53
Yep

FieldDoc, have you set SYNC ON? If you have, you'll need to add a SYNC into the inner loop (maybe just before 'UNTIL Key <> ""').

Also, clearing the screen inside this loop is not going to make this code fast. If you do need to clear the screen, put it above the first REPEAT, so it is only happening once.
Terabyte
23
Years of Service
User Offline
Joined: 28th Dec 2002
Location: UK
Posted: 21st Jun 2003 23:03
just a quick question.

What is te full name of the program tha you use to write dll files. (full name i.e. Borland JBuilder or Microsoft Visual basic 6) what is the fulll name of he c++ you use

Reset
IanM
Retired Moderator
23
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 21st Jun 2003 23:17
I use MS VC++.NET (7.0), but I've also been playing with Delphi
MrTAToad
23
Years of Service
User Offline
Joined: 26th Aug 2002
Location: United Kingdom
Posted: 21st Jun 2003 23:32
A magazine has got Borland Pascal Personal on the CD, by the way.

Good news everyone! I really am THAT good...
http://www.nickk.nildram.co.uk/ for great plug-ins - oh my, yes!
FieldDoc
23
Years of Service
User Offline
Joined: 30th May 2003
Location: London, UK
Posted: 22nd Jun 2003 01:09
Thanks IanM but i'm still stuck. Looks like i'm gonna have to put up with people typing slower than usual! I have to have a CLS every inner loop but I can't have it above the first loop because the screen has to be redrawn more frequently than that
I'm sure its fixable but i'm gonna put down my do-list as I have a tonne of important stuff to try to figure out yet!

Life is like a penis:
When it's soft you can't beat it, when it's hard you get screwed.

Login to post a reply

Server time is: 2026-07-11 14:55:36
Your offset time is: 2026-07-11 14:55:36