Ok, the problem with your character not being block by the wall unless they are walking is a known problem. It’s not your code.
The code is very weird, but seems to work, so never mind
Ok, it’s non-trivial. You basically have to use ‘sweep’ and add code to push the player:
Here’s a more sensible way to move an object back and forth
2 Likes