Tiled tutorial help

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
User avatar
GungnirDev
Party member
Posts: 119
Joined: Thu Jun 28, 2012 10:31 pm

Tiled tutorial help

Post by GungnirDev »

http://www.headchant.com/2012/01/06/tut ... ve-part-1/

I'm trying to use this tutorial to use Tiled in LOVE2D. After simply attempting to apply the principles, I finally broke down and ended up copypasting the code into my file word for word just to see if I could get it to work. What's weird is that the document provided works just fine, but not my copy of it. It's certainly possible that my code is messing it up, but my code is solid as long as I leave the tutorial stuff out of it.

I have the latest version of Tiled, and I opened and saved both maps in it. I suspected the tutorial might be outdated, but for some reason the tutorial file still works but mine does not.

The error I'm getting is: attempt to index field 'tl' (a nil value). Curiously, I see no reference to 'tl' anywhere else in the whole code (which would explain why it is 'nil') and yet it works fine on the tutorial.

I'm planning to sell this game at some point or put it on Kickstarter, so I'm not asking anyone to do my work for me, but can someone who uses Tiled tell me what the "proper" syntax for this tutorial would be on the latest version of Tiled?
Bullets are the beauty of the blistering sky
Bullets are the beauty and I don't know why
User avatar
GungnirDev
Party member
Posts: 119
Joined: Thu Jun 28, 2012 10:31 pm

Re: Tiled tutorial help

Post by GungnirDev »

Image
Bullets are the beauty of the blistering sky
Bullets are the beauty and I don't know why
User avatar
DaedalusYoung
Party member
Posts: 413
Joined: Sun Jul 14, 2013 8:04 pm

Re: Tiled tutorial help

Post by DaedalusYoung »

I don't know, but on that very page, people ask about the tl value in the comments.

And although I just had it open, for some reason, it's not loading the page anymore, but I'd say read those comments.
User avatar
Eamonn
Party member
Posts: 550
Joined: Sat May 04, 2013 1:29 pm
Location: Ireland

Re: Tiled tutorial help

Post by Eamonn »

You need to actually use an old version of ATL(AdvancedTiledLoader), because the new version does not have the tl value.

Watch a tutorial by Goature linked below and download his assets to get the old version.

Also, I have a tutorial for you on Tiled if you want to use it.

Goatures tutorials: http://www.youtube.com/watch?v=Mz6E9A8Xm84
General Tiled Collision: http://higherorderfun.com/blog/2012/05/ ... atformers/
http://www.explodingrabbit.com/forum/en ... al-01.669/ -- Watch all 5 or 6 guides

Hope these help!
"In those quiet moments, you come into my mind" - Liam Reilly
Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot], Semrush [Bot] and 4 guests