GameMaker : how to use Tiled custom properties?

I’ve set up a few custom properties (scaleX and scaleY) on square objects in Tiled, gave them a type (obj_wall) and exported the map to gamemaker map format. The instances appear correctly but how do I access the custom properties now in GameMaker?

I got my answer in another thread :

I think it would still be useful to add support for scaleX and scaleY custom properties for non-tile objects.

Yes, I would use that!

Just for general information, support for scaleX and scaleY custom properties was added with the following change:

https://github.com/bjorn/tiled/commit/9e1023eabb6add3989ce21ee148c6ef46fc50abd

They can be used to set the scale of the instance, or override the scale that is derived in case of instances placed using tile objects.

These and other supported properties are now documented here.

1 Like