ok, if i understand this correctly, you want a loop to periodically update certain variables in the game, such as a monster location, every 0.1 of a second, but you also want to be able to process input. if you're wanting to program in dos, i don't really know anything about dos programming, so i can't really be of help, but i can say that constantly moving graphics in the command prompt is basically impossible. moreover, in the command line, when it waits for input, the program is not running any functions, it's waiting for you to input something and press enter, then it will continue. actually, i'm not 100% sure that it's impossible to have a process running in the backround of that, but i certainly have no idea how to do it.