Falling & Stacking

Hey all,

I’m looking to create a falling objects effect (colored boxes in this case) that when they hit the bottom of the stage begin piling up on each other. Once the stack gets to a certain point the bottom row sinks down to create a continued looping effect.

Any thoughts on the best way to achieve this?

Much thanks!