AGCONS's Forum Posts

  • 2 posts
  • There are two arrays with coordinates (x and y) and I would like to check which coordinates are not used in the first array. (If the coordinates are used I want to delete it.)

    If I think it well:

    I have to take the first row from the Array 2 and compare it with the full Array 1.

    • If there is a match delete it from the Array 1 and go to the next Array 2 row.
    • If there is no match go to the next Array 2 row.

    I hope it makes sense.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I have two arrays, I want to compare these 2 arrays and get back the Array 1 with the unique values.

    Array 1, XY:

    0, 1

    1, 1

    2, 2

    3, 3

    4, 4

    5, 4

    Array 2, XY:

    0, 1

    1, 1

    2, 3

    3, 2

    4, 4

    5, 4

    In this scenario it should give back the 2, 2 and 3, 3 from the Array 1. So it should give back the results where the position X0 and X1 together unique.

  • 2 posts