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 ![:slight_smile: :slight_smile:](https://d1ap1mz92jnks1.cloudfront.net/images/emoji/twitter/slight_smile.png?v=12)
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