i can't figure out this simple thing..
I had it as
speed = 5
if (_root.ground.hitTest(_x+(hit._width/2), _y-(hit._height/2), true) or _root.ground.hitTest(_x+(hit._width/2), _y-3, true) or _root.ground.hitTest(_x+(hit._width/2), _y-(hit._height), true)) {
_x -= speed;
}
if (Key.isDown(Key.RIGHT)) {
_x += speed
}
and this worked fine so I decided to change it and make it
_x += speed
speed += 1
}
and now it wont hit the wall at all, if i put on a trace on the wall, it doesnt even register the hitTest.
Eh I'm baffled wioth this simple thing :/ small mistake somewhere?..