I'm trying to create a game with drag & drop movement, which will have walls set up throughout the screen which need to "stop" the user's movement WITHOUT removing the user's control over the object, in a way that when the user moves back onto the "player" object (with their mouse cursor, finger, etc) then the cursor will pick the player object back up.
I can't just limit the user's movement area as there could be walls within that area too.
I've tried a few methods from here in the forums, but there always seems to be something that makes it wrong for what I'm trying to achieve.
Thanks in advance
Edit: As an extra note, if the user moves their mouse to a location along the wall the player object is against, it would be good if the object could "slide" along the wall