Hi,
I’m trying to make a game in which you are a detective…, I defined the winning variable which is an array:
[AS]var win:Array = new Array(level.Cat, level.Dog);[/AS]
which means that if I want to solve the case I will need to have the Cat and the Dog in my inventory, but if I have the Dog and the Cat (in that order) the case wont be solved.
So, what should I do to tell the array that the order of the items is irrelevant, but the specific items are strictly important?
For example, if I define:
[AS]var win:Array = new Array(level.Cat, level.Dog, level.Gun);[/AS]
When I find the 3 objects, no matter the order the case should be solved.
Thanks In Advance,
Areil