I've been trying to write a hittest that will work for rounded walls on my RPG D: But i've been epic phailing. Heres my code:

onClipEvent(load){speed=10;}onClipEvent(enterFrame ){if(Key.isDown(Key.UP)){this._y-=speed;this.gotoAndStop(5);}if(Key.isDown(Key.DOWN )){this._y+=speed;this.gotoAndStop(6);}if(Key.isDo wn(Key.RIGHT)){this._x+=speed;this.gotoAndStop(7); }if(Key.isDown(Key.LEFT)){this._x-=speed;this.gotoAndStop(8);}

If someone could help me out I would love them forever <3