Clearing/rewriting screen with no delay?
Currently in my console based RPG, the logic is as follows:
if left/right/up/down are pressed, move P in that direction.
Wait 100 MS, then continue.
if left/right/up/down are NOT pressed, goto the loop before checking to see if they ARE pressed.
There's no flicker when I'm not moving. But every move has flicker...
Is there a way to remove the flicker? I currently use system("cls") to clear the screen, then my DisplayMap(); to Write to the screen.
If there's anyway at all to even JUST clear the player's character and then re-write the player's character that would be AMAZING.
Nope, there's no way to clear the screen without system("cls"). I've read about this before, can't remember why.