How can i restrict which axis a camera moves on from a top down perspective?

Hello,

So i have this issue at the moment with my top down game. I have a player on screen and in its blueprint i have a spring arm and a camera pointing down at the player. I want to limit the camera from following the player when it moves up and down the screen, but not left or right.

Any suggestions on the best way to achieve this?

Thanks!

Nvm solved it! :smiley: