Access tiled property through main.lua
Posted: Tue Aug 15, 2017 1:58 am
Code: Select all
properties = {},
tilesets = {
{
name = "TileSet",
firstgid = 1,
tilewidth = 32,
tileheight = 32,
spacing = 0,
margin = 0,
image = "TileSet.png",
imagewidth = 452,
imageheight = 32,
tileoffset = {
x = 0,
y = 0
},
properties = {},
terrains = {},
tilecount = 14,
tiles = {
{
id = 12,
properties = {
["collidable"] = "true"
}
}
}
},
Code: Select all
["collidable"] = "true"