Hello everyone, I'm a long time lurker, first time poster. I am currently making a version of Snake with C, and I am having a problem with making the characters move by themselves when the user does not input a direction. Currently, the setup involves a 3d array making up the board, character, etc. When a certain key is pressed, the character moves respectively depending on what position the character is already in. All I need to do is have the program ask for a character for a certain amount of time, and if the user fails to enter one, it uses the previous one. I have been working with some parts of time.h, with little success. For one reason or another, I cannot get the clock to do as I please.
I am using Visual C++ 2003, with Windows XP.
Any advice or help would be greatly appreciated. I have read the FAQs on the site, but cannot seem to figure it out. Thanks.