KingRecycle wrote:So last night I remade a test map and set all the tiles to the correct properties.
But for some reason when I pass a variable to get tileData it errors.
So like ground.tileData(5,5).properties will work but
local x = 5
local y = 5
ground.tileData(x,y).properties will error.
I appreciate any help!
P.S. Excuse the messy code. I'm slowly changing everything.
I'm not seeing that. I am however getting a nil index error when I try and move. That's because the code tries to access the tile properties without checking if the tile exists first.
Hey, I've been trying out ATL and I am loving it so far but I have hit a snag and I cannot understand the issue... I am getting the following error:
Error: libs/AdvTiledLoader/Object.lua:144: attempt to index local 'self' (a number value)
This error makes no sense to me as the library seems to be working flawlessly with the provided example maps. If you could have a quick gander to see if I am totally mucking things up, I'd appreciate it c:
Do excuse the mess, I am learning as I go and will of course pretty things up eventually. c: