I'm developing a platformer game using Python and Pygame, and I can run it without any issues in Visual Studio Code. However, when I try to run the script directly from my computer, I get an error. I have the full code here, and I'm wondering why it works in VSC but not when run directly. Any insights into this would be really helpful!
1 Answer
What error do you get when you try to run it directly? It's crucial to know the specific message you're seeing to diagnose the problem.
I'm getting this error: FileNotFoundError: No file 'PlatformerSpritesplatform.png' found in working directory. It mentions that it can't find the image file.