Touch button move camera

Hello everyone! I would like to work on a mobile scene where the user pressing on the two buttons with the up and down arrows has the camera moving forward along the road or backward. Currently the buttons are widgets. How could I do this?

hi @FabianaCarboni

If you are capturing touch events onto those widgets, you just need to have your camera move forward or backwards at a constant rate , or a smooth transition to a set location forward or backwards depending what you are trying for

Hi @High500!

Between the two options, prefer movement with a constant rate. Could you show me an example? Unfortunately, I’m still not very familiar with this kind of blueprint.

that would be quite a blueprint. you need to understand the enhanced input first. Then how to apply that to a player controller. Also what are you controlling a character blueprint?
Is it one of the unreal built in characters? if so you will just need to remap the original W and S key mappings to the widgets instead.

It would be wiser to understand the input system first. How widgets get input, and then how to translate that to your player movement.

its most likely inside the widget button you create a binding to pass the input to the player or player controller

I’d actually like to simulate a first-person walk and by pushing those buttons on the touchscreen move back and forward.