Ask coding questions

← Back to all posts
Pause/Delay the Game in Pygame
p_loo (1)

I am trying to display "Level Completed!" text at the end of my game's level before the game progresses to the next level. I tried to use pygame.time.delay() after the text was blitted onto the screen so the text will be displayed for a few seconds, but the pause keeps happening before the text is blitted. How can I solve this? Thanks in advance. https://repl.it/@p_loo/Full-SwampGame-Ask

Voters
p_loo (1)
Commentshotnewtop
ash15khng (471)

Which line and which file are you talking about? You have quite a few files.

p_loo (1)

Line 103 on main.py, thanks @ash15khng

ash15khng (471)

@p_loo Hmm, this is quite weird. Everything seems ok.