Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 Problem creating 2 player program
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
Evilferret




PostPosted: 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
Sponsor
sponsor
JayLo




PostPosted: 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




PostPosted: 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




PostPosted: 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




PostPosted: Wed Jun 18, 2003 6:17 pm   Post subject: (No subject)

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




PostPosted: Wed Jun 18, 2003 6:23 pm   Post subject: (No subject)

too many games, too little time...
blargh...
Display posts from previous:   
   Index -> Programming, Turing -> Turing Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 6 Posts ]
Jump to:   


Style:  
Search: