Jump to content

Can't access object's custom properties


zelcard
 Share

Recommended Posts

I've created an Object Layer in Tiled, added two enemies and gave them custom properties, but after creating enemies using createFromObjects and no matter what I do I can't seem to access those custom properties I added in Tiled. What am I doing wrong?

Already tried:

sprite.properties.propertyName - not working, says propertyName doesn't exist.

sprite.properties[propertyName] - not working, says propertyName doesn't exist.

sprite.propertyName - not working, says propertyName doesn't exist.

 

Anyone can help?

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...