[suggesstion] Family Condition

0 favourites
  • 3 posts
From the Asset Store
A collection of various zombie characters sprites for creating a 2D platformer or sidescroller game
  • How about a Family Filter, lets suppose we have two families, we made a ForEach FamilyA condition, and then apply the is also a Family FamilyB condition, also, we could use instance variable from FamilyA and FamilyB, and thanks to C2 that doest allow instance variables named the same, I think it could work :)

    What do you guys think?

  • I already had this situation and found a workaround. You can do it with "pick by UID". You have a first event that picks an instance of FamilyA. Then you have a sub event that picks an instance of FamilyB by UID, providing the previously picked FamilyA member. Since it's supposed to be the same object, the UID is also the same. You can now access both FamilyA and familyB instance variable, which should refer to the same instance.

    Example:

    + mouse over Family A

       + pick FamilyB by UID (FamilyA.UID) --> Set FamilyA instance variable A

                                           --> Set FamilyB instance variable B

    I know this is a workaround and it might not be as elegant as having a specific event for that, but it does the work.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Wow, that it's an awesome solution, thanks for the idea OlivierC.

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