I'm not sure I follow fully, but when I run your capx the array seems to spawn the boxes correctly - in a line, rather than all on top of eachother. You are only using the X component of the array though (width) so if you used For each X, Y element instead of just each X you could make a grid rather than a line.