Moving wall / cube pushes player in steps and not smoothly, how to fix? [SOLVED]

if your camera is attached to the player’s actor it will remain following him so he is automatically always on the screen, but we should probably keep them separate. also, instead of forcing the player forward at a fixed rate, you should probably be forcing the camera forward at a fixed rate, because that will let the player move freely around the screen as it’s moving. but he must be prevented from exiting this screen area to contain him inside the box that the camera can see, and you could easily do it by checking his position variables relative to the camera. when done this way you don’t even need to use a moving wall at all because if he falls offscreen he simply dies by calling destroy function on the player.