Skip to content
MPGHThe Dark Arts
/
RegisterLog in
Forum
Community
What's NewLatest posts across the boardTrendingHottest threads right nowSubscribedThreads you follow
Discussion
GeneralIntroductionsEntertainmentDebate FortFlaming & Rage
Board
News & AnnouncementsMPGH TimesSuggestions & HelpGiveaways
More Sections
Art & Graphic DesignProgrammingHackingCryptocurrency
Hacks & Cheats
Games
ValorantCS2 / CS:GOCall of Duty / WarzoneFortniteApex LegendsEscape From Tarkov
+14 moreLeague of LegendsGTA VMinecraftRustROTMGBattlefieldTroveBattleOnCombat ArmsCrossFireBlackshotRuneScapeDayZDead by Daylight
Resources
Game Hacking TutorialsReverse EngineeringGeneral Game HackingAnti-CheatConsole Game Hacking
Tools
Game Hacking ToolsTrainers & CheatsHack/Release NewsNew
Submit a release →Share your cheat, tool, or config with the community.
AINEW
AI Tools
General & DiscussionPrompt EngineeringLLM JailbreaksHotAI Agents & AutomationLocal / Open Models
AI × Gaming
AI Aimbots & VisionML Anti-CheatGame Bots & Automation
Create
AI Coding / Vibe CodingAI Art & MediaAI Voice & TTS
The AI frontier →Where game hacking meets modern machine learning. Jump in.
Marketplace
Buy & Sell
SellingBuyingTradingUser Services
Trust & Safety
Middleman LoungeMarketplace TalkVouch Copy Profiles
Money
Cryptocurrency TalkCurrency ExchangeWork & Job Offers
Start selling →List accounts, services, and goods. Use the middleman to trade safe.
MPGH The Dark Arts

A community for offensive security research, reverse engineering, and AI.

Community

ForumMarketplaceSearch

Account

RegisterLog in

Legal

Privacy PolicyForum RulesHelp & FAQ
© 2026 MPGH · All rights reserved.Built by the community, for the community. For educational purposes onlyContent is shared for security research and education — we don't condone illegal use. You're responsible for complying with applicable laws. Use at your own risk.
Home › Forum › Programming › C++/C Programming › Clearing/rewriting screen with no delay?

Clearing/rewriting screen with no delay?

Posts 1–13 of 13 · Page 1 of 1
VvITylerIvV
VvITylerIvV
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.
#1 · 15y ago
master131
[MPGH]master131
Nope, there's no way to clear the screen without system("cls"). I've read about this before, can't remember why.
#2 · 15y ago
VvITylerIvV
VvITylerIvV
I HAVE read a way to clear the screen using a homemade function, so I was kind of hoping. Ah well. Super flickering game foreva then.
#3 · 15y ago
FO
Fovea
SetConsoleCursorPosition Function (Windows)
Any type of clearing will cause flickering. Instead, change the console's cursor location and overwrite existing data.

For related functions see Console Functions (Windows).
#4 · 15y ago
VvITylerIvV
VvITylerIvV
I'm not too great with this. I'll try it out when I get home.

I need to create a console buffer, or can I just use

CONSOLE_SCREEN_BUFFER_INFO csbiInfo;

csbiInfo.dwCursorPosition.X = PlayerX;
csbiInfo.dwCursorPosition.Y = PlayerY;

Also, can I use cout still to write to the screen, or do I have to use

LPSTR lpszPrompt1/2/3/4/5 etc.

I'm not great with high level input/output functions..
#5 · 15y ago
LY
Lyoto Machida
I dont know if i got what you want, but maybe....

void Navigate(){
if(Key1){
system("cls");
cout << "shit" << endl;
}

//hotkeys shit
}

//main(), while(1) loop
if(key1 || key2 || key){

Navigate();

}

That way, only if the key is pressed it will clear..So it will not blink, is that what you want?

I used something like that a while ago and worked
#6 · edited 15y ago · 15y ago
VvITylerIvV
VvITylerIvV
Quote Originally Posted by Lyoto Machida View Post
I dont know if i got what you want, but maybe....

void Navigate(){
if(Key1){
system("cls");
cout << "shit" << endl;
}

//hotkeys shit
}

//main(), while(1) loop
if(key1 || key2 || key){

Navigate();

}

That way, only if the key is pressed it will clear..So it will not blink, is that what you want?

I used something like that a while ago and worked
No. I'm already using that lol.

I have most of everything working...

ALMOST a working AI. I have studied A*, just haven't implemented it yet.

A working battle system. Well, it opens up, let's you move the selection key but you can't actually select anything.

Collision detection.
But really, in a console application, how hard is this to make...

But whenever your character moves, the application blinks.
#7 · 15y ago
LY
Lyoto Machida
Because everytime you Move() it cls() and rewrite the screen
#8 · 15y ago
VvITylerIvV
VvITylerIvV
Quote Originally Posted by Lyoto Machida View Post
Because everytime you Move() it cls() and rewrite the screen
mhm. But this is an RPG. With a player, and monsters, and stuff that move. So it's LOTS of moving.. Lot's of blinking. Lot's of RefreshScreen()... D:
#9 · 15y ago
Void
Void
Quote Originally Posted by VvITylerIvV View Post
mhm. But this is an RPG. With a player, and monsters, and stuff that move. So it's LOTS of moving.. Lot's of blinking. Lot's of RefreshScreen()... D:
You should take a look at allegro if you're going to make a game like that.
#10 · 15y ago
VvITylerIvV
VvITylerIvV
Quote Originally Posted by Void View Post
You should take a look at allegro if you're going to make a game like that.
lawl. No. If I were to tackle a Graphics API, I'd choose directx.

I simply want to make a game like this in a console... Just because I can.


Chances are, it will have 6-7 maps, all accesable through a portal

on top of that, 1 town.

4 different monsters

on top of THOSE, maybe 3-4 different bosses.

2-3 NPCS

Somewhere around 6-7 quests.



I just want to make it because I can, and who else in this world has created a 2d RPG on a console? (not text based, push 1 to go here kinda thing, but using GetAsyncKeyState())
#11 · 15y ago
LY
Lyoto Machida
I WANNA PLAY IT
#12 · 15y ago
VvITylerIvV
VvITylerIvV
Quote Originally Posted by Lyoto Machida View Post
I WANNA PLAY IT
ONCE I GET THIS FUCKING UNRESOLVED EXTERNAL FIXED I'LL REPLOAD IT!
BUT I HAVE AN UNRESOLVED EXTERNAL THAT I CAN'T FUCKING FIX *****

#13 · 15y ago
Posts 1–13 of 13 · Page 1 of 1

Post a Reply

Tags for this Thread

None