0

I just made a pygame when you click the screen it changes the color to a random color stored in a variable called backgroundColor. At the beginning of the while loop it does display.fill(backgroundColor) . I started clicking the screen really fast. But after about 8,000 cycles the screen turns white and stops doing anything. Does anyone know why the game crashes after so many color changes.

Dylan
  • 55
  • 1
  • 8
  • 3
    Do handle the events? See [`pygame.event.get()`](https://www.pygame.org/docs/ref/event.html#pygame.event.get) respectively [`pygame.event.pump()`](https://www.pygame.org/docs/ref/event.html#pygame.event.pump) – Rabbid76 Aug 30 '20 at 12:58
  • Without seeing any code that's going to be quite difficult – ChatterOne Aug 31 '20 at 06:48
  • Please show us your code. That way, we can help you debug it and fix any errors. – Qiu YU Aug 31 '20 at 09:04

0 Answers0