This is the first time ever I'm using arrays and i would like to ask you for help. I have made an array which is taking size of a square and then creates number of smaller squares within that size. And I'm not sure if it's exactly the size of the square but it looks like it is working pretty well. But now I have a problem i have no idea how to solve which is how to make those little square stay on their position simultaneously behaving like the main big square as a whole. Is it even possible? If anyone could help me with that i will highly appreciate it!
Clicking on purple square will create a square from smaller squares based on array. Clicking on "array square" will destroy it.
EDIT@ Ok, i think it doesn't have to follow it, only spawn when clicked on the big square but at its angle.