using curly braces in filepaths
Trying to create animation effect by for looping images on a specific file path and found that: THIS WORKS: img=pygame.image.load(f’/img/{self.char_type}/walk/0.png’) note 0.png but this DOES NOT: img=pygame.image.load(f’/img/{self.char_type}/walk/{i}.png’) where i is from the simple FOR loop. All FAQ posts read so far suggest swapping / for , using f and r, using // or \ and… Read More using curly braces in filepaths