So ive been trying to figure this one out for quite some time now, from paper to construct, but it just doesnt work
I thought about pinning but firstly i need to get those sprites in formation somehow (lets say 9 sprites 3x3) i would like to achive that without click and drag.
The main problem is actually that i want formations to be changable like choosing how many rows i want (if i pick 4 rows,2 sprites should leave last two rows and form the fourth row)
I ve tried creating formations by firstly spawning sprites next to each other with a help of a small equation but i quickly encourted several problems, i thought about maybe making a "squad" container which would hold spots for soldier sprites but havent had the chance to test it yet.
So does anyone have any ideas or some refrences or examples they could point me towards, i did quite a bit of reaserch but not many helpful things have come up
Anyway thanks in advance.