Page 1 of 1

AdvancedTiledLoader - Collision via Tile Property

Posted: Tue Apr 15, 2014 11:27 pm
by AlmightyByron
Is having a flag for collisions possible in Love2D with the Advanced Tile Loader?
If so, how would I go about this? I've tried looking on the internet for resources, but I haven't been able to find any.
It would be far easier just to add in a flag in Tiled.

Re: AdvancedTiledLoader - Collision via Tile Property

Posted: Wed Apr 16, 2014 12:35 pm
by Ranguna259
flag ?

Re: AdvancedTiledLoader - Collision via Tile Property

Posted: Wed Apr 16, 2014 2:49 pm
by Karai17
Hello!

Advanced Tiled Loader is deprecated software and no longer maintained. I highly recommend switching over to my library, Simple TIled Implementation, which does everything ATL does, and more!

That aside, are you looking to collide on entire tiles, or partial tiles? If you want to collide on entire tiles, STI has a built in function that generates a binary map based on some layer you throw at it. It is common practice to create a collision layer separate from the actual map layers that you can convert at runtime.

Re: AdvancedTiledLoader - Collision via Tile Property

Posted: Wed Apr 16, 2014 10:34 pm
by AlmightyByron
Karai17 wrote:Hello!

Advanced Tiled Loader is deprecated software and no longer maintained. I highly recommend switching over to my library, Simple TIled Implementation, which does everything ATL does, and more!

That aside, are you looking to collide on entire tiles, or partial tiles? If you want to collide on entire tiles, STI has a built in function that generates a binary map based on some layer you throw at it. It is common practice to create a collision layer separate from the actual map layers that you can convert at runtime.
Thank you for letting me know about STI. I have successfully jumped ship to it.
My Tiled maps use a seperate "Collisions" tile layer, as you advised, and thanks for advising me about getCollisionMap() - it looks really useful with Hardon.

Re: AdvancedTiledLoader - Collision via Tile Property

Posted: Wed Apr 16, 2014 10:38 pm
by Karai17
No problem! If you have any troubles, let me know!

Re: AdvancedTiledLoader - Collision via Tile Property

Posted: Thu Apr 17, 2014 6:39 pm
by AlmightyByron
Karai17 wrote:No problem! If you have any troubles, let me know!
Right, everything is working including player collision (I moved from Hardon to bump.lua because it wouldn't work properly), and to add in support for another kind of collision in my maps (a Teleport To Other Map tile), I've cloned the GetCollisionMap() function. So my question has been answered. How do I close threads on this forum?

Re: AdvancedTiledLoader - Collision via Tile Property

Posted: Thu Apr 17, 2014 6:51 pm
by Karai17
Just let it die on its own. :)

Re: AdvancedTiledLoader - Collision via Tile Property

Posted: Thu Apr 17, 2014 9:45 pm
by davisdude
You could also edit the main post, then change the tile to add [SOLVED] (or something to that effect). That way, people know you no longer need help.