GameMaker : how to use Tiled custom properties?


(Kevin Trepanier) #1

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?


(Kevin Trepanier) #2

I got my answer in another thread :


(Thorbjørn Lindeijer) #3

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


(Kevin Trepanier) #4

Yes, I would use that!


(Thorbjørn Lindeijer) #5

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.