Instance index number

0 favourites
  • 7 posts
From the Asset Store
Jump on numbers in the proper order and reach the sun!
  • Is there a way to see the instance index number of the selected instance of a sprite in the layout editor?

  • No, but that's a nice idea.

  • Why is this useful? It has the same problem that you'd have if you showed UIDs in the editor. If you delete a few objects and added a few more the index and UID is different for all the objects. So if you ever used it anywhere now it's wrong.

  • Well it would be useful to keep track of what's where. As it is now you have to track that from memory as you add instances. So if you have a lot of instances that would be helpful.

    And its not quite as bad as uid, as you would at least know what to expect to happen when you delete something.

    Unless it's not possible to auto-delete any conditions pointed at that index. Then of course its not practical.

  • I could be good to have it just as a reference,

    not editable. Isn't the index of and instance like the "basic" Variable of that copy of the sprite?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Let's say in an

    exprssison I want to get the "X" position of the "Sprite1.Variable 1", to be changed by a Value like "Pos"

    the only way so far is instead of using the Variable1, is to use the index where the Index number becomes Pos ex:


    what would be the other way of accessing that sprite in an expression

    using the Variable1 instead of the index#?

  • From conditions its either comparing the variable, comparing the uid, comparing one of the many other attributes such as opacity, or pick "nth".

    But as an expression in actions the only way is the index, however you can always use that in conjunction with other attributes sprite(index).height, sprite(0).x, or sprite(1).uid even.

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