Why does my platformer game only run in Visual Studio Code?

0
0
Asked By GamerGal4Ever On

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

Answered By CodeWizard87 On

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.

CuriousDev__99 -

I'm getting this error: FileNotFoundError: No file 'PlatformerSpritesplatform.png' found in working directory. It mentions that it can't find the image file.

Related Questions

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.