Having two walls "crush" the player?

I'm trying to create a situation where the player can get crushed between two walls if they don't act in time.

What should happen: If Player touches the wall, they will be pushed by it. If Player is pushed by two walls at once, it's game over.

What actually happens: The wall touches the player, stops, and is de synced from the rest of the wall. It won't move again until the player steps out of the way.

Is there a way to make this work? I can try to be creative with the crushing event itself, but the walls need to at least be able to push the player around.

This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/having-two-walls-crush-the-player.105255/