How do I make player follow to camera?

Hey guys!

I’m working on a side-scrolling shoot 'em up game, inspired by the style of ‘R-type’.
Currently camera move left(start position) to right (Goal position) but the player remain at the Player Start.
I have camera blueprint that control the side scroll and I want to synchronize the player move with the camera, ensuring they move at the same speed and distance?

Additionally, what’s the best approach to implement boundary limits for the player, preventing them from exiting the screen?

You should have the camera as a component to the player character, that will make sure the camera stays on the player

Stop the player moving in a direction with a static mesh or a blocking volume
If you wanna get more specific in collision settings set pawn to block

If for some reason you cant simply attach the camera to the player… youd probably wanna use a navigation mesh and aiMoveTo with a raycast from the camera to get the intended move location of player… but unless you have a very specific reason to do it this way id highly recommed just finding a way to have the camera as part of the character as itll simplify movment and probabbly alot of other things youll run into

What I want to do is not attach a camera component to the player, but attach the player to the camera.
Camera is moving position A to position B and player is live in the view angle. So player is not the main. camera is.

a video or screenshots or something might help me understand what your trying to accomplish

A follows B
and
B follows A
are the same thing? you move either the other follows so i’ll need more information as to what your meaning to give better help