First off to stop your character from walking through stuff you need to change the setting in the tileset. There is a setting called passability. There are a bunch of x's and o's x means you can't pass through o means you can. The explination is in the help file.