# Stacking blocks

**URL:** <https://forum.kirupa.com/t/stacking-blocks/195729>\
**Category:** flash\
**Created:** [August 2, 2006, 6:31pm UTC](https://forum.kirupa.com/t/stacking-blocks/195729 "2006-08-02T18:31:14Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![JUMBOshrimp](https://avatars.discourse-cdn.com/v4/letter/j/8baadc/32.png) [@JUMBOshrimp](https://forum.kirupa.com/u/JUMBOshrimp)\
**Post date:** [August 2, 2006, 6:31pm UTC](https://forum.kirupa.com/t/stacking-blocks/195729/1 "2006-08-02T18:31:14Z")

</div>

I want to have a bunch of blocks fall from the sky like rain then stack up when they hit the floor of the stage. anyone know how I would go about this?

I’m going to start by creating the blocks and then jamming them into an array from there i can control their falling speed but I don’t know where to start as far as the collision detection. I was initially thinking of using a hit test to stop the blocks when they hit each other but quickly realized that if they hit each other mid flight they would stop where they were
