HI I am designing a game using only graphics.h and using keyboard hits.
In my program i detect keyboard hits inside a while loop and then the changes(walking/running) occurs along with a delay.If i continuously press the key ,the while loop gets the same character and runs it even when im not pressing...
I want to move only as long as keyboard is hit
Pls help me
Thanx in advanced