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 / Key detection

Author
Message
Sinani201
18
Years of Service
User Offline
Joined: 16th Apr 2007
Location: Aperture Science Enrichment Center
Posted: 18th Apr 2007 06:51
OK, I wanna make the program so it specifically detects a certain key, and not just the arrows. It is possible to do this? This is my code so far:


As you can see, the condition after the IF command needs to be when the user enters the A key. The command that it does is coming soon... I haven't decided what happens there... yet.

Eggs
<img src="http://upload.wikimedia.org/wikipedia/commons/thumb/1/1b/White_chicken_egg_square.jpg/250px-White_chicken_egg_square.jpg">
TDK
Retired Moderator
22
Years of Service
User Offline
Joined: 19th Nov 2002
Location: UK
Posted: 18th Apr 2007 07:24
There are a number of ways - the simplest being Inkey$().



You also have ScanCode() which you can look up in the help files.

TDK_Man

Login to post a reply

Server time is: 2025-05-27 22:31:06
Your offset time is: 2025-05-27 22:31:06