Skip to content

Error when running example: attempt to call method 'bind' (a nil value) #2

@JamesSkemp

Description

@JamesSkemp

I'm attempting to play with Tidal since it appears that the Advanced Tiled Loader was never updated for the current release of the LOVE framework.

However, when I run the example main.lua file in the master branch I get the following error:

src/TileLayer.lua:242: attempt to call method 'bind' (a nill value)

The specific line it's triggering on is in

main.lua: 120: in function 'draw'

Relevant code for a simplified example that triggers the same stack trace:

function love.load()
    tidal = require 'Tidal'

    map = tidal.load('maps/tilemap.tmx')

    x,y = 0,0
end

function love.update(dt)
    if map then
        map:update(dt)
    end
end

function love.draw()
    -- error occurs on the next line.
    map:draw(x,y)

end

Since this is also happening in the example I assume I'm not doing something wrong, but ...

Running the current version of LOVE on Windows.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions