playMaker

Author Topic: 2 dimensions array with Arraymaker ?  (Read 2874 times)

app_advisory

  • Junior Playmaker
  • **
  • Posts: 80
    • App Advisory
2 dimensions array with Arraymaker ?
« on: October 27, 2014, 03:11:16 PM »
Hi,

Is there a way to make a 2 (or more) dimensions array ?

Thanks !

Matias H. Moro

  • Playmaker Newbie
  • *
  • Posts: 2
Re: 2 dimensions array with Arraymaker ?
« Reply #1 on: February 22, 2015, 09:09:10 PM »
So? It is possible? I'm about to download arraymaker to see this for myself!

Matias H. Moro

  • Playmaker Newbie
  • *
  • Posts: 2
Re: 2 dimensions array with Arraymaker ?
« Reply #2 on: February 22, 2015, 09:54:56 PM »
Hi,

Is there a way to make a 2 (or more) dimensions array ?

Thanks !

I've checked, and it's not possible, you have to use Jagged arrays.That is, a regular array that contains several arrays. You can google the concept, it seems complicated, but is fairly easy to master and understand.

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: 2 dimensions array with Arraymaker ?
« Reply #3 on: February 23, 2015, 01:14:27 AM »
Hi,

I am doing the following when I need 2 dimensions arrays.

 I have one Gameobject with several arrayList, each with the reference set to the column, for example "Name","Surname","Age"

 so I have three arrays now. and everytime I populate the array, I set the value at the same index on the three different arrays with the right value.

 Bye,

 Jean