Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

Adding Properties to DisplayObject’
Started by burnsj002 Feb 11 2014 06:46 PM

- - - - -
1 reply to this topic
[TOPIC CONTROLS]
[/TOPIC CONTROLS]
[modOptionsDropdown]
[/modOptionsDropdown]
[reputationFilter]
[TOPIC: post.html]
#1

burnsj002

[GLOBAL: userInfoPane.html]
burnsj002
  • Starter
  • PipPip
  • 22 posts
  • Member

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!



[TOPIC: post.html]
#2

primoz.cerar

[GLOBAL: userInfoPane.html]
primoz.cerar
  • Starter
  • PipPipPipPipPipPip
  • 443 posts
  • Jedi

object.state = 1




[topic_controls]
[/topic_controls]