Character is not being pushed away by moving walls [SOLVED]

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:

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