Pygame: Image Not Appearing On Moving Background
my code was working fine when i didnt have a moving background. But now, i started making my character move from left to right and it stopped showing up. Ive been trying to figure
Solution 1:
Background removes all from screen - so you have to always draw background before any other elements.
You don't need to draw static background in (0,0)
because moving background also remove it.
def redrawGameWindow():
# background
screen.blit(background, (backgroundX, 0))
screen.blit(background, (backgroundX2, 0))
man.draw(screen)
pygame.display.update()
Post a Comment for "Pygame: Image Not Appearing On Moving Background"