Trouble handling collision using Advanced Tiled Loader

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
vine
Prole
Posts: 5
Joined: Sun Dec 02, 2012 4:59 pm

Trouble handling collision using Advanced Tiled Loader

Post by vine »

I'm using https://github.com/Kadoba/Advanced-Tiled-Loader/wiki to handle map loading from Tiled, but I'm having difficulty getting the coordinates of individual tiles.

I had planned to iterate through every tile and check for

Code: Select all

if tile.properties.solid == true and tile.x >= (etc..)
but I can't pull the tile.x or tile.y coordinates from the class.
How do I grab the tile coordinates.. or is there a better way of handling collision using ATL?
mathacka
Prole
Posts: 8
Joined: Tue Sep 25, 2012 7:45 pm

Re: Trouble handling collision using Advanced Tiled Loader

Post by mathacka »

I'm not entirely sure I understand the problem, could you attach a .love file? If the problem is finding a certain tile's x,y coordinates, couldn't you iterate through a loop in a load function and use that as the "map coordinates" for your collision reference?
Post Reply

Who is online

Users browsing this forum: No registered users and 5 guests