I'm animating a character in Pygame, and currently, what is happening is the animating images are being laid on top of each other, with the ones on the bottom still being visible (they are slightly misaligned).
This is not a sprite sheet, which I know are popular, so the guidance I've received online will not work for me. Each image is independent from every other.
When I keyup, the images do disappear after the animation; I'm just trying to have Pygame remove the images in a sequence, as opposed to all at once after all have been processed.
Any advice would be appreciated!
note: I've tried iterating through a list, with the j1-j8 variables being a list of the pictures, and either Pygame was moving to fast for the movement to be perceived, or it otherwise did not seem to work at all.
#####example#######
if event.type == pygame.KEYDOWN:
if event.key == pygame.K_b:
SCREEN.blit(j1, (char_x, char_y))
time.sleep(.1)
pygame.display.update()
SCREEN.blit(j2, (char_x, char_y))
time.sleep(.1)
pygame.display.update()
SCREEN.blit(j7, (char_x, char_y))
time.sleep(.1)
pygame.display.update()
SCREEN.blit(j8, (char_x, char_y))
time.sleep(.1)
pygame.display.update()