Hi guys!
I am in the process of making a game...similar to this one:
http://www.miniclip.com/games/nfl-lateral-collateral/en/
I am using the following code to detect key presses:
pygame.event.pump()
key = pygame.key.get_pressed()
if key[pygame.K_LEFT]:
...
How can I detect if a key is released? I have seen this done with using 'event' instead of 'key.get_pressed()', but I don't want to switch to event because I have had many previous problems with it.
Is there a way to detect if a key is released, or even just not pressed, using the 'key.get_pressed()' method of doing things? If not, then I will switch to event, but it would save me loads of time.
Thanks for your time
Mark