playMaker

Author Topic: Multiple ArrayMaker Check  (Read 1994 times)

MUX

  • Playmaker Newbie
  • *
  • Posts: 43
    • @stefstivala
Multiple ArrayMaker Check
« on: December 12, 2014, 10:01:18 AM »
bit stuck on this simple logic - What we be the best way to approach checking if X objects are all in an ArrayMaker List? in my case i have an array of 120 'possible' objects, that move used objects to a 'Used' array. i need to check if a certain (dynamic not hardcoded) 6 objects are all in the 'Used' array to define an area as 'ready'.

mdotstrange

  • Hero Member
  • *****
  • Posts: 555
    • Can't code? Who cares! Make games anyway!
Re: Multiple ArrayMaker Check
« Reply #1 on: December 12, 2014, 09:45:50 PM »
Might be easier to use a hash table for your used items and then use the Hash Table Get action to check for the items by key- that action has a "found" + "not found" event which will be helpful
Indie game dev and instructor at the Strange School. Learn Playmaker at the Strange School!

MUX

  • Playmaker Newbie
  • *
  • Posts: 43
    • @stefstivala
Re: Multiple ArrayMaker Check
« Reply #2 on: December 13, 2014, 11:43:11 PM »
Might be easier to use a hash table for your used items and then use the Hash Table Get action to check for the items by key- that action has a "found" + "not found" event which will be helpful

thanks i will give this technique a try & report back