Hello I'm developing a game with cocos2d in python. I am trying load a tiled map, but i have problems with it.
1-Large time of loading a tmx file.
2-Atribute error while loading the tiled map.
My code:
class Level(Scene):How can i reduce the loading time?
Traceback (most recent call last): File "***/PycharmProjects/smashking/Main.py", line 74, in <module> escena_2 = Level() File "***/PycharmProjects/smashking/Levels.py", line 13, in __init__ character_layer.add(bg) File "***/PycharmProjects/course/venv/lib/python3.8/site-packages/cocos/layer/scrolling.py", line 295, in add self.set_focus(self.fx, self.fy, force=True) File "***/PycharmProjects/course/venv/lib/python3.8/site-packages/cocos/layer/scrolling.py", line 373, in set_focus return self.force_focus(fx, fy) File "***/PycharmProjects/course/venv/lib/python3.8/site-packages/cocos/layer/scrolling.py", line 481, in force_focus layer.set_view(childs_scroll_x, childs_scroll_y, w, h, AttributeError: 'TileSet' object has no attribute 'set_view'Why is getting this error while loading?
--
You received this message because you are subscribed to the Google Groups "cocos2d discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cocos-discus...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/cocos-discuss/c222af1f-abb9-49df-8413-7d553b6ba813n%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/cocos-discuss/63c63cdd-286d-4159-8be4-1be8613446fcn%40googlegroups.com.