playMaker

Author Topic: ArrayMaker - Add two Array List indexes to create a 3rd Totaled Array List[SOLVE  (Read 1443 times)

nuxvomo

  • Playmaker Newbie
  • *
  • Posts: 30
  • Indy based indie producer of Nights of Yore
    • Nights of Yore
I'm using ArrayMaker and I want to add the indexes of one Array List Proxy to the corresponding indexes of another Array List Proxy and show each corresponding index Total in a 3rd Array List Proxy.

Is there an easy or better way to do this that I'm just not seeing?

Thanks!
Jim
« Last Edit: April 03, 2020, 02:24:30 AM by jeanfabre »
Producer of Nights of Yore, a streamlined tabletop role-playing game for Android and PC
http://nightsofyore.com/

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Hi,

 use ArrayListConcat to achieve this.

Bye,

 Jean

nuxvomo

  • Playmaker Newbie
  • *
  • Posts: 30
  • Indy based indie producer of Nights of Yore
    • Nights of Yore
ArrayListConcact just adds the indexes of array 1 to the end of array 2. I need to sum the corresponding indexes of array 1 and 2 to a 3rd array.
I.E. (array 1, index 0) + (array 2, index 0) sum to (array 3, index 0) an do this for all corresponding indexes.
I hope that's more clear.
« Last Edit: March 30, 2020, 06:26:12 PM by nuxvomo »
Producer of Nights of Yore, a streamlined tabletop role-playing game for Android and PC
http://nightsofyore.com/

sebaslive

  • Hero Member
  • *****
  • Posts: 572
    • Frame Tale Studios
Hey, You can do an array get next to get the first index, move to a new state and array get next on the second array, add those two temporary numbers from both arrays and add to a new array then loop back to the first state.
All my VR games use Steam VR Playmaker Toolkit: http://u3d.as/u20
And Oculus Touch Playmaker Toolkit: http://u3d.as/QT5


Follow me @sebasRez

nuxvomo

  • Playmaker Newbie
  • *
  • Posts: 30
  • Indy based indie producer of Nights of Yore
    • Nights of Yore
@sebaslive
OK, thanks!
That's what I have in place currently.
Just wanted to make sure there wasn't some action to make this cleaner.
I'm building a new version of an app and just trying to clean up wherever I can.
Thank you for your help and for ArrayMaker!
Producer of Nights of Yore, a streamlined tabletop role-playing game for Android and PC
http://nightsofyore.com/