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 / How Do i Make A Message

Author
Message
Eddie Gordo
23
Years of Service
User Offline
Joined: 14th Jan 2003
Location: Ohio - USA
Posted: 16th Apr 2003 01:44
How Do i Create a Message The user inputs without using input cause that stops the program, or entry$() cause you cant backspace?
Artifact Basic-5%
Epic Crossings RPG-25%
MrTAToad
23
Years of Service
User Offline
Joined: 26th Aug 2002
Location: United Kingdom
Posted: 16th Apr 2003 02:15 Edited at: 16th Apr 2003 02:18
Well, I'm doing a routine that allows input whilst continuing with other stuff for my game - it uses a mixture of DLL's to convert and validate scancodes + DBPro to do the adding/deleting.

I've included my code - the basis of it, is that it checks to see if a key is pressed by looking for a scancode. If there is one, and its valid, then the DLL converts it to an ASCII-type code (as defined by me), and then added to a string. All displaying is done using sprites (and only sprites).

We also get the time and process background animation whilst the user is holding down a key for a given length of time, or if no key is pressed.

Ah, the code tag as a limit on it... Very well, the code is below



Good news everyone! I really am THAT good...
http://www.nickk.nildram.co.uk/ for great plug-ins - oh my, yes!
Eddie Gordo
23
Years of Service
User Offline
Joined: 14th Jan 2003
Location: Ohio - USA
Posted: 16th Apr 2003 02:35 Edited at: 16th Apr 2003 02:36
HEY Thanx a ton u are awsome i will put your name in credits of my tutorial and MMORPG

Artifact Basic-5%
Epic Crossings RPG-25%
SoulBlazer42
23
Years of Service
User Offline
Joined: 13th Apr 2003
Location:
Posted: 18th Apr 2003 05:59
hmm that code does not seem to work for me it says it can not understand alot of the code. Is there some stuff I have to make to get it to work?

MrTAToad
23
Years of Service
User Offline
Joined: 26th Aug 2002
Location: United Kingdom
Posted: 18th Apr 2003 12:08
Oh yes - I forgot to mention I haven't listed most of the functions + DLL + other bits it used.

Its just there to give a general outline of what to do. I'll be uploading the DLL to my web-site later, so that'll help with scancode validation.

Good news everyone! I really am THAT good...
http://www.nickk.nildram.co.uk/ for great plug-ins - oh my, yes!
Eddie Gordo
23
Years of Service
User Offline
Joined: 14th Jan 2003
Location: Ohio - USA
Posted: 20th Apr 2003 04:59
yes but the backspace function line was all i needed from that i made very good piece of code

Artifact Basic-5%
Epic Crossings RPG-25%
MrTAToad
23
Years of Service
User Offline
Joined: 26th Aug 2002
Location: United Kingdom
Posted: 20th Apr 2003 18:48
Using my FuncMap DLL ?

Good news everyone! I really am THAT good...
http://www.nickk.nildram.co.uk/ for great plug-ins - oh my, yes!
Sedate Solution
23
Years of Service
User Offline
Joined: 15th Apr 2003
Location:
Posted: 20th Apr 2003 22:38
FUNCTIONS WITHOUT DLL'S.

THIS FUNCTION IS TOTALLY PASSIVE.

CUT AND PASTE THIS CODE.
IanM
Retired Moderator
23
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 21st Apr 2003 00:01
Wow, you shout in code too?

Here's a slightly shorter version of the same thing



I've cut it down from a working but prettier example - you really don't need all the graphical stuff I've wrapped around it or the many functions they need. Oh, and I've added the blinking cursor too - just for you
Andy Igoe
23
Years of Service
User Offline
Joined: 6th Oct 2002
Location: United Kingdom
Posted: 21st Apr 2003 09:02
The lesson to learn here is that sometimes expert programmers can only write expert programs.

DB has many possible solutions for real time input with all the BASIC ascii commands you need to solve this in any number of ways.

Source Button below shows my method, just a quick method that's easy to add or remove from.

Pneumatic Dryll, Outrageous epic cleric of EQ/Xev
God made the world in 7 days, but we're still waiting for the patch.
IanM
Retired Moderator
23
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 21st Apr 2003 13:16
Yeah, I know - but I wanted to be able to cursor around in mine, and insert/delete from the middle too

I absolutely hate it when you realise you made a mistake in the middle of what you've typed, and then are forced to delete back to that point to correct it.
MrTAToad
23
Years of Service
User Offline
Joined: 26th Aug 2002
Location: United Kingdom
Posted: 21st Apr 2003 13:27
I would like to point there is only one small error in my code...

Good news everyone! I really am THAT good...
http://www.nickk.nildram.co.uk/ for great plug-ins - oh my, yes!

Login to post a reply

Server time is: 2026-07-11 09:30:11
Your offset time is: 2026-07-11 09:30:11