So Im making a game and at the end of 60 seconds I want to make the screen change colors and display some end text. I set up the timer like this:
time = 60
TICKTOCK = 0
pygame.time.set_timer (TICKTOCK+1, 1000)
and that's being displayed onscreen just fine, but when the end screen appear it flashes between the original white screen and the end screen. For some reason, it doesn't flash if I'm waving my mouse around the screen.
if time <= 0:
playground.fill(black)
playground.blit(end, (0, 100))
"end" is my game over text variable
pygame.display.flip()
playground.fill(white)
clock.tick (fps)
pygame.quit()
This is what I have at the end too if that helps
Is there a way I can make it appear steadily without having to change my timer?
fill(white)? probably you don't need it. - furas