I finally got tired of manually making walkable maps from Tiled files and created a quick little function that does it for me.

Create your walkable are in Tiled and make sure it’s the first layer (the one at the bottom of the Layer list in Tiled). Export your level as Lua and then use that file as seen here:

local level01 = require("level01") -- load the exported Tiled level
--=======================================================================
-- pass in the table that holds the level info from: local level01 = require("level01")
-- get back a table that can be used as a map for Pathfinder
--=======================================================================
local function walkableMapFromTMX(lvl)
local t = {}
local idx = 1
for h = 1, lvl.layers[1].height do
t[h] = {}
for w = 1, lvl.layers[1].width do
t[h][w] = lvl.layers[1].data[idx]
idx = idx + 1
end
end
return t
end
map = walkableMapFromTMX(level01)

You’ll end up with the map variable holding the walkable map that Jumper needs.

This makes tweaking walk maps so much easier.

It would be pretty easy to grab the data based on layer name instead of hardcoding the first layer. That way you could name the layer something like “Walkable” inside Tiled and grab that no matter whether it’s the first, last, or middle layer.