Simple question about the Dusk engine and Tiled

I am trying to reference an object that I created in Tiled map editor, in my main.lua file. In Tiled , I named my object “crate1”. How do I reference crate1 in my main.lua file? In Michael Wilson’s video on using Tiled , he said in order to do this, I could type “myCrate=tiled (“myCrate”,map.data)”. That obviously doesn’t work anymore. Please assist. Thank you.

In Dusk you have to grab it from the map. For example:

local crate = map.layer[“markers”].object[“crate”] – assuming that your Tiled layer is called “markers”

In Dusk you have to grab it from the map. For example:

local crate = map.layer[“markers”].object[“crate”] – assuming that your Tiled layer is called “markers”