Input Touch Move up and down

Hey,

i have one question…

The goal is: moves the virtual stick up -> Character do something
moves the virtual stick down -> Do something else

I don’t get it… “InputTouch Moved” works in all directions only.

Thank you very much!

Best regards

It sounds to me like you may consider putting logic in to determine which axis/direction the InputTouchMoved is on, then which direction it’s moved on the axis. + trigger one event, - trigger another. But I’m not 100% clear on how to set up that logic. Hope that helps a little.

The easyest way is to create your own virtual sticks. You can do this easy by creating a wiget blueprint. In it you can place 2 buttons, one for up and one for down. Than just create an event for “at button clicked” or “at button pressed” and call your funktions. You just have to make sure that you create the wigdet blueprint at the start of the game and print it to the screen of the player.