# Collision detection

**URL:** <https://forum.kirupa.com/t/collision-detection/239661>\
**Category:** Uncategorized\
**Created:** [September 24, 2007, 4:11pm UTC](https://forum.kirupa.com/t/collision-detection/239661 "2007-09-24T16:11:48Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![hakukaji](https://avatars.discourse-cdn.com/v4/letter/h/43a26b/32.png) [@hakukaji](https://forum.kirupa.com/u/hakukaji)\
**Post date:** [September 24, 2007, 4:11pm UTC](https://forum.kirupa.com/t/collision-detection/239661/1 "2007-09-24T16:11:48Z")

</div>

Since I’ve just recently gotten into as/flash I’ve been wondering about better ways to detect collisions (specifically using as3), I currently use hitTestObject(), and it’s easy and sort of works, but I know you can do it based on pixels.

Here is an example of what i have so far

[http://www.digitalbc.net/flash/engine2/demos/BrickGame.html](http://www.digitalbc.net/flash/engine2/demos/BrickGame.html)

the code is here.

[http://www.digitalbc.net/ugwiki/index.php/BrickGame\_code](http://www.digitalbc.net/ugwiki/index.php/BrickGame_code)

any suggestions welcome.
