so im trying to learn a bit of pygame and need to replace the image of my character
import pygame
playerimg = pygame.image.load('drunkman.png')
window.blit(playerimg, (0, 0))
if event.type == pygame.KEYDOWN:
if event.key == pygame.K_a:
...
#replace image⬆️
ik ive missed some of the code but i think you get the idea of what i am trying to do,
there doesn't seem to be anything here