How do you make a collision move?

Do they go back? Or you just want them to keep going forward? Are you using Paper2D to create the walls? I haven’t used Paper2D, but you can try to use something like this.