NPC Sprites not showing #287
I have everything set up in my code if you want to take a look at that. The NPC problem I'm having is in the Mart when I have the player about to talk to the professor. You have to press enter in front of the first donut on the right
Thanks, I'll look into this some more. Some recent changes might have broken NPC creation.
For issue reference, here is the full traceback:
Traceback (most recent call last): File "./tuxemon.py", line 60, in <module> main() File "/tmp/Tuxemon/tuxemon/core/main.py", line 109, in main control.main() File "/tmp/Tuxemon/tuxemon/core/control.py", line 542, in main self.main_loop() File "/tmp/Tuxemon/tuxemon/core/control.py", line 603, in main_loop self.update(time_delta) File "/tmp/Tuxemon/tuxemon/core/control.py", line 222, in update state.draw(self.screen) File "/tmp/Tuxemon/tuxemon/core/states/world/worldstate.py", line 292, in draw self.map_drawing(surface) File "/tmp/Tuxemon/tuxemon/core/states/world/worldstate.py", line 394, in map_drawing surfaces.extend(npc.get_sprites()) AttributeError: 'str' object has no attribute 'get_sprites'
I just pushed a fix for this problem, if you pull the changes into your fork.
Also, as a suggestion for your NPC creation action, I would make sure you have this included to prevent creating more than one NPC:
If you have any other problems, let me know!