playMaker

Author Topic: ArrayMaker how to get match for 2 Items contained?  (Read 1643 times)

jess84

  • Hero Member
  • *****
  • Posts: 515
ArrayMaker how to get match for 2 Items contained?
« on: March 30, 2014, 03:27:10 PM »
Hi,

I'm extremely new to Arraymaker, and have my first question already  :-\

How do I check to see if my array contains 2 specific items?

It would have been simple if ArrayListContains allowed multiple entries.

So if I put a blue sprite and a yellow sprite into my array, I want to then send an event to destroy the gameobjects and create a new green one from a prefab.


escpodgames

  • Hero Member
  • *****
  • Posts: 687
    • Assets
Re: ArrayMaker how to get match for 2 Items contained?
« Reply #1 on: March 30, 2014, 05:49:07 PM »
You would get both items using Array list get (index 0 and 1) and then compare the names to all the possibilities.