Help me with my game!

ok i am having trouble with walls, i know how to do hit tests, but all i can do is hit test the walls i don’t know how to make my charcter stop on the wall, and not go thur it. i have the game atached, the control is set up to use wasd instead of up down left right, you can change it tho.