# Problems with hitTest

**URL:** <https://forum.kirupa.com/t/problems-with-hittest/312606>\
**Category:** flash\
**Created:** [August 8, 2010, 11:29pm UTC](https://forum.kirupa.com/t/problems-with-hittest/312606 "2010-08-08T23:29:06Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![euniceee](https://avatars.discourse-cdn.com/v4/letter/e/71c47a/32.png) [@euniceee](https://forum.kirupa.com/u/euniceee)\
**Post date:** [August 8, 2010, 11:29pm UTC](https://forum.kirupa.com/t/problems-with-hittest/312606/1 "2010-08-08T23:29:06Z")

</div>

Hi, I am currently making a game called Tangram  
[http://en.wikipedia.org/wiki/Tangram](http://en.wikipedia.org/wiki/Tangram) .However, I am stuck with the checking section. I have used hitTestPoint to check whether the player has assembled the correct pattern, however here comes the problem. As you could see the following image

[URL=“[http://img529.imageshack.us/img529/5251/screenshot20100806at094.png](http://img529.imageshack.us/img529/5251/screenshot20100806at094.png)”][http://img529.imageshack.us/img529/5251/screenshot20100806at094.png](http://img529.imageshack.us/img529/5251/screenshot20100806at094.png)

could still be considered as “correct” even thought the correct pattern should be assembled as  
[http://img85.imageshack.us/img85/9666/screenshot20100806at234.png](http://img85.imageshack.us/img85/9666/screenshot20100806at234.png).

Besides the pixel perfect collision detection, what else could I use? Since I am still a newbie to AS3 and Flash.  
The option of storing of all registration points may not be feasible, since there are alot of possibilities to solve a pattern. Is it possible if I could define the boundaries of the shape by myself rather than the highest and lowest X Y co-ordinates? Thank you very much for your help!
