I've been searching for a while now but I haven't been able to find an answer. I've set up a patrolling AI using the method with the invisible sprites as walls (per the How to make a Platform Game tutorial). I'm wondering if there's a way to only have the walls affect the npcs, keeping them within their bounds, while not affecting the player. Right now, if the player approaches the npc, then the player has to jump over the wall to get to them.
If not which alternative patrolling method would you suggest?