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.
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 is where the full code is. Any help would be much appreciated!
I’m currently using Flash MX.