I’m glad it’s working. I thought I’d share my example. There are some concepts that I don’t have memorized. So, I usually make a test project. I played with it afterwards. It demonstrates using an array of structures. I think it would be much easier. You can add as many children as you like. The basic concept is that you build a structure and then add it to the array.
Try me: Objects are draggable, right click toggles the animation.
source: (click the green [code] and [download zip])