Rpg-help

My post is how do i make a better hittest for me walls and collision detection for my rpg i tried different kinds but i want him just to stop when i hit walls this one makes him bounce off. pls help.