I started out to try to figure out the most elegant solution, and due to my limited expertise I'm still trying to come up with any solution. The setup is simple.
1. Click a sprite and it generates a random number
2. Then a matching number of objects is created.
In my case I want to use it to visualize arithmetic problems for teaching. I.E. the random number 4 is generated, and 4 bars (sprites) are created along with it to show the quantity. I assume the best approach for the bars is to have the system check the number, then create one bar, then make instances and offset them. I'm not clear on how to make it all happen. I have spent a lot of time trying. I'm sure I can figure out the offsetting, it's the creation of a certain quantity that matches the random number that I'm stuck on.
This c3p shows the basic setup for my specific case.
dropbox.com/s/lmpf3rrlx5os3jy/generateObjectsToMatchNumberCount.c3p
Ideally the solution would accomodate larger numbers, say up to 50 at least, in which case I know I would have to deal with how to have a certain number of bars in a row, before going to a new row. Also, it's not really for just a single number, but for addition and subtraction problems, but cross that bridge later. I'd like to gain a basic understanding first.
Many thanks for any assistance.