attempt to index field 'tileData'
Posted: Fri Aug 21, 2015 9:15 pm
I have repurposed this thread from one dumb question that got answered to another problem of mine just to save space.
Ok, so attached is my basic platformer WIP (you can always click this to see a github page for the main.lua, where the problem is), which I am creating with this tutorial (which isn't very helpful. One more problem out of this I'll probably just scrap it and find a new tutorial).
When I try to run the .love, I get this:
Error
main.lua:86: attempt to index field 'tileData' (a nil value)
Traceback
main.lua:86: in function 'findSolidTiles'
main.lua:14: in function 'load'
[C]: in function 'xpcall'
however, my script is basically identical to the source code of the tutorial.
What do I do? Where did I go wrong?
(or you can even link me to a superior tutorial if this problem is just a fault of the tutorial)
Ok, so attached is my basic platformer WIP (you can always click this to see a github page for the main.lua, where the problem is), which I am creating with this tutorial (which isn't very helpful. One more problem out of this I'll probably just scrap it and find a new tutorial).
When I try to run the .love, I get this:
Error
main.lua:86: attempt to index field 'tileData' (a nil value)
Traceback
main.lua:86: in function 'findSolidTiles'
main.lua:14: in function 'load'
[C]: in function 'xpcall'
however, my script is basically identical to the source code of the tutorial.
What do I do? Where did I go wrong?
(or you can even link me to a superior tutorial if this problem is just a fault of the tutorial)