Advanced Tile Loader - using objects

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
Post Reply
luaz
Citizen
Posts: 83
Joined: Sun Sep 16, 2012 2:55 pm

Advanced Tile Loader - using objects

Post by luaz »

Has anyone used them? I haven't found any tutorials or other info on them, except the reference.

What I would like to do is get the object position and for example print it. I've tried getting it as ObjectLayer.x or ObjectLayer.properties.x, didn't work - returns nil and an error respectively. I'm bad with references...
If you're going to reply to my post, consider posting an (preferably working) example - 99.7% of time time, I already know how to implement the feature theoretically! ;) I don't learn very well from references, etc....
User avatar
Roland_Yonaba
Inner party member
Posts: 1563
Joined: Tue Jun 21, 2011 6:08 pm
Location: Ouagadougou (Burkina Faso)
Contact:

Re: Advanced Tile Loader - using objects

Post by Roland_Yonaba »

Well, I dunno much of AdvTiled, but from what I can see from its wiki, Objects have x and y attributes.
luaz
Citizen
Posts: 83
Joined: Sun Sep 16, 2012 2:55 pm

Re: Advanced Tile Loader - using objects

Post by luaz »

Roland_Yonaba wrote:Well, I dunno much of AdvTiled, but from what I can see from its wiki, Objects have x and y attributes.
I have mentioned that I have tried that. Probably I am not doing it right, but I don't know how to do it right then.

As I said - I'm bad with references, I'm good with examples. The more concrete the example is, the more I learn from it.

That's why I've create this thread.
If you're going to reply to my post, consider posting an (preferably working) example - 99.7% of time time, I already know how to implement the feature theoretically! ;) I don't learn very well from references, etc....
User avatar
Kadoba
Party member
Posts: 399
Joined: Mon Jan 10, 2011 8:25 am
Location: Oklahoma

Re: Advanced Tile Loader - using objects

Post by Kadoba »

ATL objects aren't real objects. They're more like object data. The correct way to use them is to read their data and create your own objects in custom layers.
Post Reply

Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 210 guests