Help with pygame platformer

Started by
0 comments, last by DiegoSLTS 9 years, 4 months ago

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.

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

This topic is closed to new replies.

Advertisement