Search Results
Search type | Search syntax |
---|---|
Tags | [tag] |
Exact | "words here" |
Author |
user:1234 user:me (yours) |
Score |
score:3 (3+) score:0 (none) |
Answers |
answers:3 (3+) answers:0 (none) isaccepted:yes hasaccepted:no inquestion:1234 |
Views | views:250 |
Code | code:"if (foo != bar)" |
Sections |
title:apples body:"apples oranges" |
URL | url:"*.example.com" |
Saves | in:saves |
Status |
closed:yes duplicate:no migrated:no wiki:no |
Types |
is:question is:answer |
Exclude |
-[tag] -apples |
For more details on advanced search visit our help page |
A game development library based on the Python programming language. It wraps SDL for easy use alongside Python.
0
votes
How can I make smoother upwards/downwards controls in pygame?
In pygame you can check the unbuffered key state (not PRESSED/RELEASED events, but whether a key is CURRENTLY pressed) like so:
keys = pygame.key.get_pressed()
my_speed = 0
if keys[pygame.K_a]: my_speed …
2
votes
Accepted
Pygame Tile Based Character movement speed
Basically what you are probably looking for is a little timer which counts down the time until the next move is possible after a move was done. Like so (not tested, replace w_key_pressed etc by the pr …