platform Tutorial help

General discussion about LÖVE, Lua, game development, puns, and unicorns.
Post Reply
User avatar
Sirius24
Prole
Posts: 3
Joined: Fri Jan 11, 2013 9:33 pm

platform Tutorial help

Post 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.
User avatar
Larsii30
Party member
Posts: 267
Joined: Sun Sep 11, 2011 9:36 am
Location: Germany

Re: platform Tutorial help

Post 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 ?
User avatar
substitute541
Party member
Posts: 484
Joined: Fri Aug 24, 2012 9:04 am
Location: Southern Leyte, Visayas, Philippines
Contact:

Re: platform Tutorial help

Post 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.
Currently designing themes for WordPress.

Sometimes lurks around the forum.
User avatar
Eamonn
Party member
Posts: 550
Joined: Sat May 04, 2013 1:29 pm
Location: Ireland

Re: platform Tutorial help

Post 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
"In those quiet moments, you come into my mind" - Liam Reilly
Post Reply

Who is online

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