I have a game where after the character completes a level (by destroying all the monsters on the screen), a message should pop up saying "Round Clear!" and then it should move on to the next level. This is my code so far:
if len(monsters) == 0:
smallFont = pygame.font.Font(None, 40)
clearText = smallFont.render('Round Clear!', True, BLACK)
screen.blit(clearText, (SCREEN_WIDTH*.5, SCREEN_HEIGHT*.5))
boardIndex += 1
board = boards[boardIndex]
However, if I do this, the message pops up for less than a second and immediately moves on to the next board. I want some sort of delay to happen where the blank line is in my code so that the message appears for like 3 seconds and then the new board shows. If I use pygame.time.delay(), it messes up the animation that kills the last monster since everything happens so fast.
Does anyone have any tips?