Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Newcomers DBPro Corner / Entire Screen redrawing

Author
Message
Taggert
18
Years of Service
User Offline
Joined: 19th Apr 2006
Location: Salem, OR
Posted: 30th Jul 2006 09:18
I've created a main menu with a cursor and the start game and quit buttons, but how do I make the cursor go down or up when the player presses the appropriate key without the entire screen being redrawn? My biggest issue with my current method is that if you hold down the key, the screen goes blank and stays that way until you let go. Thanks.

I am the king...of no pants!
Trinita
21
Years of Service
User Offline
Joined: 29th Sep 2003
Location: Italy
Posted: 30th Jul 2006 17:54
You must insert sync after the inkey$() command, so that even while pressing the button, the screen refrehes. Or maybe you can control the pression timing of the button, limiting it to 0.05 sec. If you can paste the code i can surely help you with that.

"An eye for an eye will only make the whole world blind."

Login to post a reply

Server time is: 2024-11-26 14:20:45
Your offset time is: 2024-11-26 14:20:45