I am currently following the documentation at
http://python.cocos2d.org/doc/programming_guide/tiled_map.html#controlling-map-scrolling
1
<http://python.cocos2d.org/doc/programming_guide/tiled_map.html#controlling-map-scrolling>
to load a Tiled (.tmx) orthogonal map into my game.
Now I am loading my .tmx map into the game via the following Python code:
map = cocos.tiles.load("mymap.tmx")
However, this line of code raises the following error:
'Resource' object has no attribute 'set_view'
Now the weird thing is that the following line of code bypasses that issue,
but the drawback is that it only loads one layer on my Tiled (.tmx) map.
map = cocos.tiles.load("mymap.tmx")['layer1']
I can't seem to figure out why this error is being raised, but I am hoping
someone with a good understanding of cocos can aid me.
Thanks a ton!
--
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/cocos-discuss.
For more options, visit https://groups.google.com/d/optout.