On Wed, Dec 19, 2012 at 10:53 PM, Art Aquino <[email protected]> wrote:

> Thanks for the reply Claudio. I have looked at that test files and they
> were a great help. That is how I was able to load a tile layer. My problem
> is loading an object layer. For example:
>
> self.resource = cocos.tiles.load('map.tmx')
> self.map = self.resource.get_resource('Tile Layer 1')
> self.obj = self.resource.get_resource('Obj Layer 1')
>
> When I try to load an object layer using the method above, I get a key
> error. I can create multiple tile layers and load them fine, but I cannot
> load object layers this way and could not find a method in the cocos2D API
> that would do that.
>   --
>


I'm not familiarized with the TMX format, nor the cocos support for it.
Looking at issue 182
http://code.google.com/p/los-cocos/issues/detail?id=182
I suspect what you want is not implemented.
Maybe Richard can confirm or correct if I'm wrong.

As an alternative, you can look at this post
http://groups.google.com/group/cocos-discuss/browse_thread/thread/c1884ee7cff05a1a
( Full TMX map format support , proof of concept by Hogne )

-- 
You received this message because you are subscribed to the Google Groups 
"cocos2d discuss" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/cocos-discuss?hl=en.

Reply via email to