playMaker

Author Topic: Children Order  (Read 2638 times)

ByronNilsson

  • Playmaker Newbie
  • *
  • Posts: 18
Children Order
« on: August 26, 2011, 12:54:34 AM »
Hi,
I want to iterate through a series of children as an array. I create the children off the parent in a loop. When i then go through the children sequentially, they are not in the order i created them in. This messes up my 'array' of objects. Get Child Num 1 for example, does not get the second object/child created, but the 12th, in my 5x5 grid example. They are all out of order. Any help?

The children are sorted by name. So i now use Set Name in a sequence 00,01,02 etc..., just need to add a function to Set Name Value, to set the name by a string + counter, Building00, Building01 etc....

Thanks, Byron.
« Last Edit: August 30, 2011, 12:10:58 AM by ByronNilsson »