[Scripting API] How to associate the coordinates of object layer and tiled layer?

Is there any API for it?

My original need was just add a displayable custom property for tile, also for empty tile. So I make a object layer for it, but the coordinates between them was quit differentce.

1 Like

You can convert from tile coordinates to pixel coordinates (for positioning objects) using tileToPixel, and the other way around using pixelToTile. Does that help?

2 Likes

Yes, that’s it. Thank you kindly.

1 Like