Jump to content
  • Advertisement
Sign in to follow this  
bocaj527

Help with pygame platformer

This topic is 1421 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

Alright, so I'm having some trouble with a  simple platformer that I'm trying to make. I can get the player block to move and jump around just fine. The problem I'm having is the player can also blink (teleport) a short distance in a direction. This also work just fine...mostly. 

 

The real problem I am having is when the player tries to blink in the air. It works just fine when the player is trying to blink while pressing the up and right keys. But for some reason it refuses to work when they are pressing the up and Left keys. I have no Idea why this isn't working. The relevant code is in the paste bin below. Thanks in advanced for any help you can give me on why this isn't working.

 

Share this post


Link to post
Share on other sites
Advertisement

There's no pastebin link in your post, but if you're pressing a combination of keys consider the possibility that your keyboard doesn't recognize that combination. Some key combinations are not detected in certaing keyboards, and in some cases other combinations trigger a key press on another key.

 

http://en.wikipedia.org/wiki/Rollover_%28key%29

http://www.microsoft.com/appliedsciences/antighostingexplained.mspx

Share this post


Link to post
Share on other sites
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!