Enemy character is being overdrawn by game's background
问题 I am working on a game which spawns enemies. Though once these enemies are spawned, they instantly disappear again because the background is drawn on top of them. Is there a way to have a layer system in Pygame? Code to recreate the problem: import pygame import threading from random import randint from time import sleep pygame.init() window = pygame.display.set_mode((900, 900)) bg=pygame.image.load("Background.png").convert() def Gameplay(): while True: window.blit(bg, [0,0]) pygame.display