I am sure this has been covered somewhere, I just have yet to find it. I am trying to put together the makings of a small RPG, but am having trouble with the player character movement system. I am using 4 buttons to move the character, but cannot get the character to not walk through walls and objects.
When using the playerChar.x = whatever type movement, he will just walk through walls and objects. When using a physics:applyLinearImpulse type movement, I cannot make him go a short distance. No matter what I set the impulse to, he flies off into oblivion. My initial thoughts went to using the direct x/y movement of the character, but having some sort of display grouping set up that if that x/y was going to hit something in the group, it would negate moving in that direction. Haven’t figure out how to accomplish that yet, though.
I know this is likely an easy fix, I just must not be searching for the right thing. Any help would be greatly appreciated.