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

Tiled Map

zakkwyldezakkwylde Member
edited January 2012 in General questions

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]

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



Sign In or Register to comment.