Page 1 of 1
Attempting to index a field and failing.
Posted: Wed Jan 25, 2012 10:24 pm
by legendman3
Hello, i am making a platformer and i am using the
Advanced Tiled Loader library.
I have a error where when my game loads, does the findSolidTiles function, and then sees this line:
I have included the .love and if you need anything else then, ask and ye shall receive.
Re: Attempting to index a field and failing.
Posted: Wed Jan 25, 2012 11:13 pm
by coffee
You should put your question in Advanced Tile Loader thread (
viewtopic.php?f=5&t=2567) so the author or people who use the library more easily find and answer your questions.
Re: Attempting to index a field and failing.
Posted: Wed Jan 25, 2012 11:19 pm
by legendman3
Oh thansk i didnt know that was there!
Re: Attempting to index a field and failing.
Posted: Wed Jan 25, 2012 11:58 pm
by headchant
It seems like you are following my tutorial
here?
edit, epic fail:
Your love.load calls findsolidtiles with wrong arguments:
Code: Select all
function love.load()
map = loader.load("level.tmx")
collider = HC(100, on_collide)
allSolidTiles = findSolidTiles(map)
setupHero(32,32)
end
Re: Attempting to index a field and failing.
Posted: Thu Jan 26, 2012 12:12 am
by legendman3
Thanks headchant.
I have no clue why i had collider in the arguements.