How do I verify existing couples inside an array?

Get help using Construct 2

Post » Sun Feb 15, 2015 10:33 pm

Hi, i'm buiding a Card game. I have an array 4x2 containing the UID of the card on first row and a value on second one.
I should verify if there are couples or more inside the array and then retrieve the relative UID. For example
1 2 3 4
11 11 5 6
this should pick 1 and 2 UID

1 2 3 4
11 11 8 8

Shoud pick all cards and

1 2 3 4
11 11 11 6

first 3

What woul be the best way to do it without a lot of useless and messy code that i would use for sure now? :)
Thanks for help!
B
6
S
1
Posts: 60
Reputation: 539

Return to How do I....?

Who is online

Users browsing this forum: No registered users and 1 guest