Ask coding questions

← Back to all posts
I need help with pygame
AlexPeled

How do I specify
if event.type == pygame.MOUSEBUTTONDOWN:
mouse_down = False

so that it only works if someone clicks in a specific spot, because with that code, it will activate if someone clicks anywhere on the screen.

Voters
AlexPeled
Comments
hotnewtop
Coder100

you could also check the position of the mouse