How do i get the chest_id from a tiled object? I am creating a group of chests from a tiled map layer.
let chests = scene.physics.add.group();
chests.addMultiple(map.createFromObjects(
'Chests', {
name: "chestSprite",
classType: Chest
}
));
chests.playAnimation('chestclosed');
Here is my console log of a chest.
I thought i could use chest.chest_id but it returns undefined.
Thank you.