Answers for "upload multiple images, but when change status, always show the same pygame"

0

upload multiple images, but when change status, always show the same pygame

images = []
for i in range(7):  # loop start in 0, up to 7, but does not include 7
    image = pygame.image.load(r'C:\Users\Tang\Desktop\Programming\images\images\hangman1.png')
    image = pygame.image.load(r'C:\Users\Tang\Desktop\Programming\images\images\hangman2.png')
    image = pygame.image.load(r'C:\Users\Tang\Desktop\Programming\images\images\hangman3.png')
    image = pygame.image.load(r'C:\Users\Tang\Desktop\Programming\images\images\hangman4.png')
    image = pygame.image.load(r'C:\Users\Tang\Desktop\Programming\images\images\hangman5.png')
    image = pygame.image.load(r'C:\Users\Tang\Desktop\Programming\images\images\hangman6.png')
    image = pygame.image.load(r'C:\Users\Tang\Desktop\Programming\images\images\hangman7.png')
    images.append(image)

# Game variables
hangman_status = 1
Posted by: Guest on August-08-2021

Code answers related to "upload multiple images, but when change status, always show the same pygame"

Browse Popular Code Answers by Language