Problem creating 2 player program
Author |
Message |
Evilferret
|
Posted: Wed Jun 18, 2003 3:46 pm Post subject: Problem creating 2 player program |
|
|
Hey,
My name's Matt Bryan, I'm kinda new to turing. Used to use a program called "Metal" (for macintosh) to do my programming.
Uhm, the problem is, I'm attempting to create a 2 player game. The problem is if 2 players are holding down keys at once, the "getch" command will only accept one of the inputs.
In metal I used to use a "if keymap key (key) then...." command. Is there some sort of keymap command, or other command which will allow 2 users to input data from the ketboard simultaniously?
Thanks,
Matt Bryan |
|
|
|
|
|
Sponsor Sponsor
|
|
|
JayLo
|
Posted: Wed Jun 18, 2003 3:58 pm Post subject: (No subject) |
|
|
try using 'Input.KeyDown'
Turing 4 only!
code: |
var chars : array chars of boolean
loop
Input.KeyDown (chars)
if chars('d') then
put "haha. the 'd' key!"
end if
end loop |
|
|
|
|
|
|
Andy
|
Posted: Wed Jun 18, 2003 6:13 pm Post subject: (No subject) |
|
|
why would u post this in the TURING help section? what does TURING mean to u? |
|
|
|
|
|
PaddyLong
|
Posted: Wed Jun 18, 2003 6:15 pm Post subject: (No subject) |
|
|
umm maybe you should read entire posts and stop flaming dodge_tomahawk because he is asking about turing |
|
|
|
|
|
Andy
|
Posted: Wed Jun 18, 2003 6:17 pm Post subject: (No subject) |
|
|
dammit, i need more sleep, sory kiddo *falls asleep* |
|
|
|
|
|
JayLo
|
Posted: Wed Jun 18, 2003 6:23 pm Post subject: (No subject) |
|
|
too many games, too little time...
blargh... |
|
|
|
|
|
|
|