I can stop PacMan going through the wall one way but he can go through the wall when going in the other direction, the code i have used is:
onClipEvent (enterFrame) {
if (_root.char.hitTest(this))
{
_root.char._x -= 7;
}
}
I need him to not go through the wall when travelling in either direction! thanks in advance