Sunday, 15 July 2012

python 2.7 - Can I make pygame have a keyboard button with two functions? -



python 2.7 - Can I make pygame have a keyboard button with two functions? -

i making game pygame, , wondering if somehow create if press space bar once, image blitted, if press space bar again, different image blotted.

thanks, victor

oh yes. increment variable every time press space bar. , when becomes 2 (or multiple of 2), sec image should loaded.

python-2.7 pygame

No comments:

Post a Comment