Can you explain what you mean by "sliding along edges"? Like you get stuck on walls when you touch them? I coded it so that if you're holding, say, UP and RIGHT against a RIGHT wall, you should continue moving up
If only a tiny Corner of me is stuck on a Wall and I press forward, I should slide down the Wall a bit to align myself with the empty Tile I'm trying to move it. If it helps to visualize it better, the Corners of the Wall collision should have a bit of a Curve basically. Or the Character should have a Circular base footprint for the Collision, that should achieve the same Effect. The Way it is right now, with Boxes for both, means when I'm a pixel off or two, I can't enter a Pathway and have to manually move down.