Ask coding questions

← Back to all posts
I need help with pygame
AlexPeled (0)

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.

Coder100 (18109)

you could also check the position of the mouse