hoping to get some help regarding blitting text-rects in a sequence, a small delay of about a second between them. I've managed to get pretty close however my most recent attempt repeats the process of blitting my three lines of text over and over. I can't for the life of my figure out how to have these three lines blit to the screen in order, and then stop.
I have included an example of this part of my code, any and all help would be greatly appreciated!
def Title_Screen():
while True:
TitleScreen_MOUSE_POS = pygame.mouse.get_pos()
# Background
SCREEN.blit(BG, (0, 0))
pygame.display.flip()
# Title
pygame.time.delay(1000)
SCREEN.blit(TitleScreen1_TEXT, TitleScreen1_RECT)
pygame.display.flip()
pygame.time.delay(1000)
SCREEN.blit(TitleScreen2_TEXT, TitleScreen2_RECT)
pygame.display.flip()
pygame.time.delay(1000)
SCREEN.blit(TitleScreen3_TEXT, TitleScreen3_RECT)
# Press Any Key To Continue
SCREEN.blit(PressKeyText, PressKeyRect)
pygame.display.flip()
for event in pygame.event.get():
if event.type == pygame.KEYDOWN:
Main_menu()
if event.type == pygame.QUIT:
pygame.quit()
sys.exit()
pygame.display.update()