I am creating a game where one of the aspects is clicking on a “Plot” part which will then plant a seed on that part. This works perfectly fine, however, I want the player to be able to plant multiple with a single click, depending on the level of their “PlantingSize” stat, which is changed by how high their “SeedBag” is upgraded.
I am wondering how I should go about doing this. The simplest way would be to only use square numbers to plant a square of crops, however this would mean that the “PlantingSize” will increase way to fast. I imagine that I would have to only use even numbers, which would then only plant rectangles or squares. The issue with this is that I am completely unsure how I would go about this.
Examples of why I am unsure:
With a “PlantingSize” of 2, it would obviously just do a 1x2 rectangle.
With 4, it would be a 2x2.
6 would be 2x3
8 would be 2x4
10 would be 2x5
12 would probably be 3x4
16 then would be 4x4
I haven’t a clue how I would decide what the dimensions of the rectangle would be with code. I’m also wondering where the other crops would place around the plot part that you click on.