How do I this (Advanced Families)

0 favourites
  • 3 posts
From the Asset Store
Advanced inventory mechanics for your RPG game (Array-based). Take Items, split them, pick up them, read the description
  • Ok I have a specific problem with families. I have a Family test and into it there is a Sprite

    So I have also a variable for all objects from family,

    basic and easy, no? Then I create 3 instances from that family , in 2 instances I set 0 in its variable and the third I set a 1

    So far so good. The problem is complicated here, I need to when collides family test with family test

    Only are destroyed the instances, for example:

    test.Variable=1 with test.Variable=0, they are destroyed

    test.Variable=0 with test.Variable=1, they are destroyed

    but other hand if

    test.Variable=0 with test.Variable=0, they are not destroyed

    I have tried many things, but I don't sure if that is possible

    Thanks in advance

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • The trick here is always to test against different objects. Either test Family against Sprite, or make a second duplicate family to test against.

  • Yea blackhornet and thanks for reply, that is my second option, but that doubt arose. I think that should be possible, ie, I can getting the IID for instance but I cant compare at same time 2 instances from same sprite when collides.

    Anyway thanks

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