Runtime.js properties issue

0 favourites
  • 3 posts
  • in edittime.js, when you set properties, you can't set two properties or more with the same name....

    <font color=blue>new</font> cr.Property(ept_integer,<font color=grey> "Size", "40", "Size A"</font>),

    <font color=blue>new</font> cr.Property(ept_integer,<font color=grey> "Size", "1", "Size B"</font>)

    the first is called in the runtime by[0], the second by[1], but in Construct 2 (as in preview/exported project), the 2nd propertie is exactly the same that the 1st one(the initial value of the 2nd properties will be "40" instead of "1", as its description will be "Size B")

    I need same name, because my properties works as category.

    e.g there is a size used by one function, another by another function...

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • This is by design, and cannot be fixed - the property grid itself distinguishes properties by their name, including the OnPropertyChanged function which is passed the name of the property. You just need to use different names.

  • :/ without category as parameters for proprieties, that is really not practical for plugins which requires several proprieties....

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)