How events choose the instance you refer to?

0 favourites
  • 3 posts
From the Asset Store
14 amazing sound files of game events like Level Ups, Level Completes, object spawn, object taking etc.
  • If I create an event that contains a condition refering to a instance of an object, and only one object in the layout meets the condition, the event will understand that I refer to THAT instance when I create actions, but what happens if you create a new instance of the same object in that event. Which instance will the action refer to from that point?

    And more important, what happens if I want to compare to already existing instances of the same object in a layout, is there a way to do it?


  • I believe this is still accurate, but probably not too critical for most users.

    Afaik that the actions following a created object, for that object, are exclusive to the newly created object in that event regardless of currently picked objects. The list of currently picked objects carries over to subsequent sub events as normal, but does not include the newly created object.

    The key is that newly created objects, outside of the immediate event they are created in, cannot be picked normally until the next top level event.

    Using the on created trigger, and the system pick last created condition will give you finer control.

    The normal way to pick and manipulate multiple instances of the same object involves using families. If you put the object into a family then you will be able to pick and reference between the sprite object and the family object.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I see, thanks a lot for your answer.

    So as I was afraid before, there is limitation in some cases.

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