Page 1 of 1

platform Tutorial help

Posted: Fri Jan 11, 2013 9:41 pm
by Sirius24
Hey, so I am new to Love and Lua. Ive programmed in other languages before but it seems some of this is over my head. So ive been trying to learn by using the available tutorials and I started with

http://www.explodingrabbit.com/forum/en ... al-01.669/

Ive made it to the 4th part without too many problems but I just ran into one that I just cant figure out.

Every time I try running the game I get this error:

player/Player.lua:146: attempt to index field 'tl' (a nil value)

now Im sure i just overlooked something but if anyone has some insight could you please help.

Im trying my best to get a grasp on this stuff but sometimes I just don't quite understand.

Thanks Much for your help.

Re: platform Tutorial help

Posted: Fri Jan 11, 2013 10:00 pm
by Larsii30
Welcome on the Forums :)
looks like a typing fault in line 146. look on your code.. maybe you wanted to type "lt" for "love.timer" instead of "tl" or something like that ?

Re: platform Tutorial help

Posted: Sat Jan 12, 2013 6:07 am
by substitute541
There's a reason why error messages exist ; it's so that you can identify where and what the problem is. Oh and, please add a .love file when you ask for help.

Re: platform Tutorial help

Posted: Tue Jul 02, 2013 6:39 pm
by Eamonn
Yes, I'm WAY too late, but the problem is because you are using a new version of ATL(AdvancedTiledLoader). Yes, a new version, not old one. I had the same problem! Watch a guy called Goature on YouTube. Look at his platformer tutorial and download his files from Part 4. Copy + Paste his version of ATL into your game folder.

Hope this helped, even though I'm like 6 months late :P