# Object collision (hitTest) question

**URL:** https://forum.kirupa.com/t/object-collision-hittest-question/32055
**Category:** Uncategorized
**Created:** [October 1, 2003, 12:38am UTC](https://forum.kirupa.com/t/object-collision-hittest-question/32055 "2003-10-01T00:38:12Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![delirium](https://avatars.discourse-cdn.com/v4/letter/d/3e96dc/32.png) [@delirium](https://forum.kirupa.com/u/delirium)
#### Post date: [October 1, 2003, 12:38am UTC](https://forum.kirupa.com/t/object-collision-hittest-question/32055/1 "2003-10-01T00:38:12Z")

</div>

I’m stumped with a problem I’m having with hitTest. I got the object to move around using the arrow keys, and in one test I got the object to stick to a wall and not move, but I changed some code around and now it doesn’t recogize the hitTest at all.

```auto
if (key.isDown(key.DOWN)) {
	if (_root.block.hitTest(this._x, (this._y+speed), false) != "true") {
		this._y += speed;
	}
}

```

The object will still move but will pass through the block(s).

[http://flub.ath.cx/~delirium/test.fla](http://flub.ath.cx/~delirium/test.fla) is where the full code is. Any help would be much appreciated!

I’m currently using Flash MX.
