Open TCH057 opened 3 years ago
The error message doesn't necessarily mean that the error isn't in your code. Errors like this tend to cascade down to different parts of the Python libraries.
If you can send me the full program, I can probably let you know where it's going wrong. My initial guess would be a problem with the image file that you have used for the different sprite frames, but it's hard to tell from this. You can send code to spaget@wgsf.net if you like. I appreciate that it's coursework, so you don't want to post it publicly.
When running the python code for my PyGame window and trying to make a sprite it says something along the lines of
File "C:\Users\User\AppData\Roaming\Python\Python39\site-packages\pygame\sprite.py", line 648, in draw surface_blit = surface.blit AttributeError: 'str' object has no attribute 'blit'
This problem resides in the code provided by this functions download and not my code as you can see it finds the issue with a different file to my save file location. Does anyone know what is happening?