Aug-23-2018, 01:19 AM
The bug is in your code.
This is why you have to hold it. When no other event occur after it.
Then it stays True.
if event.type == pygame.MOUSEBUTTONDOWN: mouseclicked = True print("THIS IS DETECTING!") else: mouseclicked = FalseIt will be set to True. Soon as the next event happens it turns False.
This is why you have to hold it. When no other event occur after it.
Then it stays True.
99 percent of computer problems exists between chair and keyboard.