# Collision detection for draggable blocks - Need help

**URL:** https://forum.kirupa.com/t/collision-detection-for-draggable-blocks-need-help/212437
**Category:** programming
**Created:** [January 11, 2007, 3:06am UTC](https://forum.kirupa.com/t/collision-detection-for-draggable-blocks-need-help/212437 "2007-01-11T03:06:51Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![motionbound](https://avatars.discourse-cdn.com/v4/letter/m/ebca7d/32.png) [@motionbound](https://forum.kirupa.com/u/motionbound)
#### Post date: [January 11, 2007, 3:06am UTC](https://forum.kirupa.com/t/collision-detection-for-draggable-blocks-need-help/212437/1 "2007-01-11T03:06:51Z")

</div>

I’m building a Jenga inspired app in which users can rearrange the stacking order of blocks. The Blocks appear isometric but they’re all on the same plane and I’m simply using the front face of each to perform the hitTests. I’ve run into a few issues:

1. Managing depths for blocks at the same \_y.
2. Dragging blocks along the \_x and having the others slide sideways accordingly
3. If you drag a block too quickly it passes through the others b/c the mouse refresh is quicker than the onEnterFrame.

I’ve attached the files below.  
I’m pretty experienced with AS development but relatively new to game programming. Any help would be greatly appreciated. Thanks.
