So I’m working on a game on pygame and when I try to import stuff from a file to another it says that it’s undefined
Hey, @DylanShull welcome to the forums!
Can you please provide a link to the repl? This way it is easier for staff and members of the community to help you!
Also see this guide on how to share your code:
It doesn’t say it but when I put “from settings import *” it keeps telling me that settings is undefined
It doesn’t say that it’s undefined, it’s saying that it’s not sure if it’s undefined because you used import *
. This is bad practice and I recommend you do not use it.
Now it’s not working at all I’m trying to follow a tutorial and that’s what the guy on the tutorial did
well the guy in your tutorial follows bad practices lol. I recommend skip all the importing nonsense and just define your settings in main.py
.
I fixed the problem thank you (this was very confusing, happy that it’s over lol)
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.