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 Discussion / Do YOU need anymore keyboard commands?

Author
Message
dab
20
Years of Service
User Offline
Joined: 22nd Sep 2004
Location: Your Temp Folder!
Posted: 30th Aug 2005 06:42
I was just thinking one day and though, it would be fun to make some more commands for DB. So I sat down and though about commands that I could make that would be simple to use, and would help us all. I instantly knew of something. MORE **key() commands. YOu know such as, returnkey() and what not. So I wanted to know if ANYONE would wnat to use it. It would be easier to use than a scancode command because, you don't have to remember any numbers on the keyboard. And the inkey command, you don't have to type as much to find out what letter it is using. You don't have to make it lower or Higher. Here is a sample code using my function so far. It only has the a key and b key (upper lower and both) and the both of the return keys. Have a look:



Here is the actual code that does the real work:


If you want more detail, let me know. I think this code explains quite a bit though.

------------------------
Visit my website of Games!
http://dabip.stonerocket.net
Robot
20
Years of Service
User Offline
Joined: 27th May 2004
Location:
Posted: 30th Aug 2005 15:51
Looking good, but what's wrong with using inkey?

e.g.


The happenings of tommorow are behind us now
dab
20
Years of Service
User Offline
Joined: 22nd Sep 2004
Location: Your Temp Folder!
Posted: 30th Aug 2005 18:40
If you are making a game with two players, you can't use inkey and upeky at the same time. This code was made just quickly to see if it was possible. I didn't quite want to finish it, or use perfect code to make a sample. I use inkey in my code, I should of used keystate (or something alon those lines).

------------------------
Visit my website of Games!
http://dabip.stonerocket.net

Login to post a reply

Server time is: 2025-05-22 14:04:53
Your offset time is: 2025-05-22 14:04:53