I tried making a simple game, but every time I try to run the code I get an error in the images location. Python can't find it. I tried putting the images in the desktop, or even using "import os"
, but neither work.
How can I make Python identify the correct filepath and run the following code:
walkRight = [pygame.image.load(os.chdir("C:\\Users\\Anas\\Desktop\\Game\\R1")),
pygame.image.load(os.chdir("C:\\Users\\Anas\\Desktop\\Game\\R2")),
pygame.image.load(os.chdir("C:\\Users\\Anas\\Desktop\\Game\\R3")),
pygame.image.load(os.chdir("C:\\Users\\Anas\\Desktop\\Game\\R4"))]