AdvancedTiledLoader - Collision via Tile Property

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
AlmightyByron
Prole
Posts: 5
Joined: Tue Apr 15, 2014 6:35 pm
Location: Southampton
Contact:

AdvancedTiledLoader - Collision via Tile Property

Post 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.
The twit who codes.
http://almightybyron.co.uk - Website
User avatar
Ranguna259
Party member
Posts: 911
Joined: Tue Jun 18, 2013 10:58 pm
Location: I'm right next to you

Re: AdvancedTiledLoader - Collision via Tile Property

Post by Ranguna259 »

flag ?
LoveDebug- A library that will help you debug your game with an on-screen fully interactive lua console, you can even do code hotswapping :D

Check out my twitter.
User avatar
Karai17
Party member
Posts: 930
Joined: Sun Sep 02, 2012 10:46 pm

Re: AdvancedTiledLoader - Collision via Tile Property

Post 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.
STI - An awesome Tiled library
LÖVE3D - A 3D library for LÖVE 0.10+

Dev Blog | GitHub | excessive ❤ moé
AlmightyByron
Prole
Posts: 5
Joined: Tue Apr 15, 2014 6:35 pm
Location: Southampton
Contact:

Re: AdvancedTiledLoader - Collision via Tile Property

Post 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.
The twit who codes.
http://almightybyron.co.uk - Website
User avatar
Karai17
Party member
Posts: 930
Joined: Sun Sep 02, 2012 10:46 pm

Re: AdvancedTiledLoader - Collision via Tile Property

Post by Karai17 »

No problem! If you have any troubles, let me know!
STI - An awesome Tiled library
LÖVE3D - A 3D library for LÖVE 0.10+

Dev Blog | GitHub | excessive ❤ moé
AlmightyByron
Prole
Posts: 5
Joined: Tue Apr 15, 2014 6:35 pm
Location: Southampton
Contact:

Re: AdvancedTiledLoader - Collision via Tile Property

Post 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?
The twit who codes.
http://almightybyron.co.uk - Website
User avatar
Karai17
Party member
Posts: 930
Joined: Sun Sep 02, 2012 10:46 pm

Re: AdvancedTiledLoader - Collision via Tile Property

Post by Karai17 »

Just let it die on its own. :)
STI - An awesome Tiled library
LÖVE3D - A 3D library for LÖVE 0.10+

Dev Blog | GitHub | excessive ❤ moé
davisdude
Party member
Posts: 1154
Joined: Sun Apr 28, 2013 3:29 am
Location: North Carolina

Re: AdvancedTiledLoader - Collision via Tile Property

Post 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.
GitHub | MLib - Math and shape intersections library | Walt - Animation library | Brady - Camera library with parallax scrolling | Vim-love-docs - Help files and syntax coloring for Vim
Post Reply

Who is online

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