what's the best way to set up a timer?
Hey guys, I'm sure this message is asked quite often but I can't find what I'm looking for. I want to write a tetris game and I'm trying to figure out how to make the peices "fall". The only thing my book talks about is using the sleep() and delay() commands. While that would work .. what happens if someone inputs a command while the sleep or deleay is in effect, I don't think the input actually goes through does it? I've thought about just getting the system time and then checking to see if a certain amount of time has passed, if so them "drop" the peice. I read somewhere that that was a bad idea though, I can't remember why. Can anyone point me in the right direction?