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.
AdvancedTiledLoader - Collision via Tile Property
Forum rules
Before you make a thread asking for help, read this.
Before you make a thread asking for help, read this.
-
- Prole
- Posts: 5
- Joined: Tue Apr 15, 2014 6:35 pm
- Location: Southampton
- Contact:
AdvancedTiledLoader - Collision via Tile Property
The twit who codes.
http://almightybyron.co.uk - Website
http://almightybyron.co.uk - Website
- 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
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.
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é
LÖVE3D - A 3D library for LÖVE 0.10+
Dev Blog | GitHub | excessive ❤ moé
-
- Prole
- Posts: 5
- Joined: Tue Apr 15, 2014 6:35 pm
- Location: Southampton
- Contact:
Re: AdvancedTiledLoader - Collision via Tile Property
Thank you for letting me know about STI. I have successfully jumped ship to it.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.
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
http://almightybyron.co.uk - Website
Re: AdvancedTiledLoader - Collision via Tile Property
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é
LÖVE3D - A 3D library for LÖVE 0.10+
Dev Blog | GitHub | excessive ❤ moé
-
- Prole
- Posts: 5
- Joined: Tue Apr 15, 2014 6:35 pm
- Location: Southampton
- Contact:
Re: AdvancedTiledLoader - Collision via Tile Property
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?Karai17 wrote:No problem! If you have any troubles, let me know!
The twit who codes.
http://almightybyron.co.uk - Website
http://almightybyron.co.uk - Website
Re: AdvancedTiledLoader - Collision via Tile Property
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é
LÖVE3D - A 3D library for LÖVE 0.10+
Dev Blog | GitHub | excessive ❤ moé
Re: AdvancedTiledLoader - Collision via Tile Property
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
Who is online
Users browsing this forum: No registered users and 10 guests