Computer Science Canada

Problem creating 2 player program

Author:  Evilferret [ 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

Author:  JayLo [ Wed Jun 18, 2003 3:58 pm ]
Post 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

Author:  Andy [ Wed Jun 18, 2003 6:13 pm ]
Post subject: 

why would u post this in the TURING help section? what does TURING mean to u?

Author:  PaddyLong [ Wed Jun 18, 2003 6:15 pm ]
Post subject: 

umm maybe you should read entire posts and stop flaming dodge_tomahawk because he is asking about turing

Author:  Andy [ Wed Jun 18, 2003 6:17 pm ]
Post subject: 

dammit, i need more sleep, sory kiddo *falls asleep*

Author:  JayLo [ Wed Jun 18, 2003 6:23 pm ]
Post subject: 

too many games, too little time...
blargh...


: