python - Disabling Mouse events - Pygame -


i have game made that, when die, message appears reading "game over. press key play again."

however, counts mouse input have no if statements in loop. wondering if there key word can use? can't seem find 1 on google.

if event.type != mousemove: 

this hoping maybe there way it. help!

do before event loop:

pygame.event.set_blocked(pygame.mousemotion) 

you'll want block other events, too. see more here: https://www.pygame.org/docs/ref/event.html


Comments

Popular posts from this blog

python 2.7 - Chat Solution for Mobile App -

jquery - Detect current Section with javascript -