Help me, please, with movement z-axis in 2d runner game

Hello everyone!

Please tell me how to make the character move up/down along the z-axis. I want to make a 2D runner where the player plays as a bird. Control the character up or down to avoid obstacles or catch different objects. I know that UE has a “flying” movement mode, but this mode is not suitable because then the player does not control the character. Thank you.

PS: I can only work with blueprints!!!

you will have to create a 3d vector then you apply matrics. if you want to understand better download math and physics for coding