Attempting to index a field and failing.

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
Post Reply
User avatar
legendman3
Citizen
Posts: 68
Joined: Sun Jan 22, 2012 8:29 pm

Attempting to index a field and failing.

Post 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:

Code: Select all

local layer = map.tl["ground"]
I have included the .love and if you need anything else then, ask and ye shall receive.
Attachments
platformer.love
(60.41 KiB) Downloaded 116 times
coffee
Party member
Posts: 1206
Joined: Wed Nov 02, 2011 9:07 pm

Re: Attempting to index a field and failing.

Post 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.
User avatar
legendman3
Citizen
Posts: 68
Joined: Sun Jan 22, 2012 8:29 pm

Re: Attempting to index a field and failing.

Post by legendman3 »

Oh thansk i didnt know that was there!
User avatar
headchant
Party member
Posts: 105
Joined: Fri Sep 03, 2010 12:39 pm
Contact:

Re: Attempting to index a field and failing.

Post 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
User avatar
legendman3
Citizen
Posts: 68
Joined: Sun Jan 22, 2012 8:29 pm

Re: Attempting to index a field and failing.

Post by legendman3 »

Thanks headchant. :P I have no clue why i had collider in the arguements.
Post Reply

Who is online

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