How move character on z-axis?

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!!!

If you don’t want to use the movement component you can do it like this:

You could also use the move component to node if you want to control the smoothness of the motion.