Quick Links: Download Gideros Studio | Gideros Documentation | Gideros community chat | DONATE
Tiled Map — Gideros Forum

Tiled Map

zakkwyldezakkwylde Member
edited January 2012 in General questions
Hi,

I am trying to access the tile properties in a map that has exported as lua code.

In your desert example is see the code to acces the layers on the lua data map, but if I assign
a property in Tiled on a tile. I cannot access. what am I doing wrong???

section in map.lua

tiles = { { id = 0, properties = { ["Blocker"] = "true" } } } } }
<>

I am trying to access like you do in your example.

for i=1, #map.tiles do
local tiles = map.tiles[i]
print(tiles.id)
end

error: attempt to get length of field 'tiles' (a nil value)

Zakk

Comments

Sign In or Register to comment.