Disclaimer: I havent used pytmx in awhile so i am out of the loop at this point. I might be out of date depending on how much he updated pytmx.
Personally i would not use star imports. But if you do, you are bypassing pytmx part of the line.
Assuming you copied only the file over and not the directory, you should be
https://github.com/justinmeister/bouncy-...der.py#L14
I have a feeling this is more of an module import issue than anything related specifically to pytmx.
Quote:Did you put pytmx file in a pytmx directory? What is your file structure? I know at one point he had a pymtx directory with a pytmx file inside. If you copied that directory over you need 2 pytmx, whereas if you copied the file only you only need 1.
Error:AttributeError: module 'pytmx.pytmx' has no attribute 'load_pygame'
Personally i would not use star imports. But if you do, you are bypassing pytmx part of the line.
Assuming you copied only the file over and not the directory, you should be
import pytmx pytmx.load_pygame()Here is a game that uses that as an example:
https://github.com/justinmeister/bouncy-...der.py#L14
I have a feeling this is more of an module import issue than anything related specifically to pytmx.
Recommended Tutorials: