Im making a maze that ball travels through. I am succesful on one wall. But when I come down to the other side it brings it up. How do make the side a hitTest? or can give me advice if theres better solutions. Thanks....
I have attached it to the ball named circle. I have include the file
//the hitTest
if (hitTest(_level0.wall)==true) {
_y = _y-10;
this below is the full code
onClipEvent (enterFrame) {
if (Key.isDown(37)) {
_x=_x-10;
}
if (Key.isDown(38)) {
_y=_y-10;
}
if (Key.isDown(39)) {
_x=_x+10;
}
if (Key.isDown(40)) {
_y=_y+10;
}
//the hit test
if (hitTest(_level0.wall)==true) {
_y = _y-10;
}
}
