How can I make the camera move like in the 2D Super Mario games?

I’m working on a small personal 2D game project. I just want the camera to move across the map, not move every time I jump or move.

Here is how I do it.

Ignore the numbers, you will need to set them depending on your project. But this way you are bypassing the Z therefore not moving up and down. This comes out of my event tick on my character BP.

Thank you! this helps a lot!