Jump to content
  • Advertisement
Sign in to follow this  
Grahf750

keyPress and screenRefresh not coinciding

This topic is 4853 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

My teamate and I have made a console game. We have graphics using ascii in a 2d array for our world. Each square of our 32x32 world is a 7x11 2d array that contains the ascii image of our grass, player, etc. Our problems is that if you press the movement keys too fast your character keeps moving after you stop pressing the keys because it can't update the screen fast enough to stay with you. We only display the area around the player not the whole map. I am not sure about how I should fix this. Can I do some timer thing maybe? I am not sure how I would implement that. I hope this is a fairly common problem newbies have because there is too much code to display it in here.

Share this post


Link to post
Share on other sites
Advertisement
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!