Answers for "how to make thing keep moving if you hold a key in pygame"

1

pygame holding a button down

while running: 
    keys = key.get_pressed() 
    if keys[K_DOWN]: 
        print "DOWN" 
    for e in event.get(): 
        pass
Posted by: Guest on August-26-2020

Code answers related to "how to make thing keep moving if you hold a key in pygame"

Python Answers by Framework

Browse Popular Code Answers by Language