Adding Properties to DisplayObject’

In the docs it says …“This means you can add your own properties to the object as long as they don’t conflict with the names of DisplayObject’s predefined properties and method.”

But how would you code that in lua?? I would like to add  a property to keep track of the STATE …

Thanks!

object.state = 1

object.state = 1