[quote="linkman2004":1j73f7o4]There's actually a really simple formula for this. The formula for finding the proper size is:
AreaWidth / XObjectCount
Since the size of the area you're filling is 400, simply divide 400 by the amount of objects placed along the X axis to get the necessary width for your objects. The width can be used for the height as well, unless you want to allow rectangular areas, in which case you would set the height to:
AreaHeight / YObjectCount
I hope this helps.
The problem that i'm having is i want to scale the box down. This method works well but sometimes the boxes get streched out and then they look funky.
The boxes are default 16x16 but if the level is lets say 30x30 then i should be 400 / 30 = 13,3 per height and width.
I want to allow rectangular, like 35x15