I am making a game where barrels fall from the top and you drag and drop them into the designated slots and they snap into place. I have it working currently but I am using sprites that I placed to snap the barrels to them then destroy the barrel and change the animation frame on the placeholder sprite to a different color and opacity. I would like to make this blue box area randomly spawn the 3 shapes to fit in the box without overlapping or going outside the bounds and also have them snap from bottom to top since it's a tower stacking idea and it currently snaps to the top first. I'm relatively new to construct so my knowledge is limited and I think I need to scrap my current way of doing it and rework it from scratch. I would like to ask if anyone can help me with how I would achieve this.
Images :