Jan-03-2020, 05:55 PM
(Jan-03-2020, 01:43 PM)michael1789 Wrote: I just noticed that line 6 you have:
pytmx.load_pygame()I don't have that, and it's not in his example. That might be the issue. Take it out and see if that works.
Nope. Sadly it is not working. The people here in the forum told me to do this. Now I'm getting this error:
File "main.py", line 5171, in <module> g = Game() File "main.py", line 15, in __init__ self.load_data() File "main.py", line 61, in load_data self.map = TiledMap(path.join(map_folder, 'map1.tmx')) File "/Users/.../Desktop/MyRPG/tilemap.py", line 24, in __init__ self.width = tm.width * tm.tilewidth AttributeError: 'function' object has no attribute 'width'The name of the map is map1.tmx. I checked that multiple times.