Advertisement Jump to content
Sign in to follow this  
Grahf750

keyPress and screenRefresh not coinciding

This topic is 4909 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.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!