# hitTest collision maze in AS3.0

**URL:** https://forum.kirupa.com/t/hittest-collision-maze-in-as3-0/288991
**Category:** flash
**Created:** [May 24, 2009, 6:56pm UTC](https://forum.kirupa.com/t/hittest-collision-maze-in-as3-0/288991 "2009-05-24T18:56:02Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![screeg](https://avatars.discourse-cdn.com/v4/letter/s/ccd318/32.png) [@screeg](https://forum.kirupa.com/u/screeg)
#### Post date: [May 24, 2009, 6:56pm UTC](https://forum.kirupa.com/t/hittest-collision-maze-in-as3-0/288991/1 "2009-05-24T18:56:02Z")

</div>

I once created a functioning maze on a grid in AS2.0 wherein the avatar would move one square at a time via keyboard arrows. His new position was checked against an Array of individually named invisible blocks which overlapped the borders of the maze and if there was a collision he was kicked back and a message prompt said, “You cannot proceed in this direction.”

Is this how I should proceed in AS3.0, or is there a less time consuming (setting up, naming, arranging blocks) method? Also, have there been significant changes to how hitTest works between versions?

Thank you in advance wonderful forum gurus! :yoda:
