   Any help would be apreceated
  Is there a command or function that will let the user input without the program stoping to wait for Them to do so?Basiclly, whant the user to chose the PC's action but don't want the NPC to sit there untell he duz.  Think it's kalled a (NON_BLOCKING Input).  Could be wrong, couldn't find anything on the web or in my books.ThanxForgot, using CodeWarriorLE for C++   Technology and either save us or destroy us.  Me ... I say it will destroy us if microsoft is the example.[edited by - Xeneth on February 18, 2004 1:57:11 AM]
  What api? Win32, Console etc ???  ;  There are two ways to do this in Windows..One is to use PeekMessage() instead of GetMessage.The other, which I don''t remember how to do, is some sort of flag that makes GetMessage non-blocking..   I have code that does this home but can''t figure out how I did it for the life of me. lol.Will ;  The games being done in the console, like the MUD's that use to be over the net (I miss them).  There is going to be no graphics or sounds for the moment, it being my first project and all.   Technology and either save us or destroy us.  Me ... I say it will destroy us if microsoft is the example.   [edited by - Xeneth on February 18, 2004 6:36:43 PM];  look up kbhit() function or something like this. It returns 0 or 1 if some pressed/didn't press a key. So you can have something like this: #include <conio.h>char c;if(!kbhit()){ c=getch();switch(c):{case 'w': MoveUp(); break;case 's': MoveDown(); break;case 'a': MoveLeft(); break;case 'd': MoveRight(); break;}}else{//do something meanwhile!} something like this, go test!    [edited by - Koobazaur on February 18, 2004 6:53:00 PM];  Thanx, I'll give it a shot.  It looks like it may work for what I'm doing.Wish me luck (and skill)   Technology can either save us or destroy us.  Me ... I say it will destroy us if microsoft is the example.   [edited by - Xeneth on February 19, 2004 5:39:28 AM];  I ran into a problem using kbhit(), everytime I try to run the test program, I get the error "undefined Identifier"  I thought it got defined in the header file.   #include <iostream>#include <conio.h>using namespace std; //introduces namespace stdint main( void ){char c;while (c != 'x'){if(!kbhit()){ c = getch(); switch(c){case 'w': c = 'w'; break;case 's':  c = 's'; break;case 'a':  c = 'a'; break;case 'd':  c = 'w'; break;}}else{cout << "You have pressed " << c << endl;};}return 0;}Technology can either save us or destroy us.  Me ... I say it will destroy us if Microsoft is the example.   [edited by - Xeneth on February 19, 2004 4:02:11 PM];  If this is in VC++ 6, try _kbhit  , with that underscore in front.  (I believe that) Microsoft uses this to indicate that the function is not technically part of the standard library, but is common and useful, so they include it as part of the library. ;  Just to let you know, MUDs are still all over the internet. ;  Thanx all, I got it.   [edited by - Xeneth on February 19, 2004 4:44:14 PM]