Sign in to follow this  

Help with pygame platformer

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

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

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this