Tiled tutorial help
Posted: Mon Aug 19, 2013 3:23 am
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?
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?