Okay heres my code...
for swipeload in range (0, 15, 1):
"E"+str(swipeload)+"_Path" = os.path.join("data","E"+str(swipeload)+".gif")
"E"+str(swipeload) = pygame.image.load("E"+str(swipeload)+"_Path")
So basically I have a bunch of images called "E1, E2, E3, E4, etc..." and I want to load them all into the cache without having to type the code for every single image....
But why doesn't this bit of code seem to work? I know it has to do something with the str() code but idk what :-(
Heres how I would normally load one of these images....
E1_Path = os.path.join("data", "E1.gif")
E1 = pygame.image.load(E1_Path)
The error says "Can't assign to operator".....
Any Help?!? Thanks :)