Tiled Custom Properties and Phaser 2

Hello,
I have a Door object, and I added a boolean (isLocked) to the object in Tiled. I am struggling to use this boolean in Phaser 2, everything I tried didn’t worked and I can’t find much things about that on internet.
I tried simply calling this.door.isLocked (like in this post) and using getTileProperties() (which seems to only work with Phaser 3…)

Is there any way to use this?

Thanks :slight_smile:

If you have used createFromObjects() then the created sprite should have the property.

If you just want to look up the map object data, it is somewhere in tilemap.objects.

Got it to work. I just had to use this[0].value to get the property in my object