How to move a player with swipes?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By davidboca8

After following Heartbeasts tutorial on youtube, i tried my hand at converting those controls for mobile.

Basically i want the player to move right/left/up/down when it detects a swipe to that direction and only stop moving once you are not touching the screen.

I am totally lost here, i found a few tutorials on youtube that do similar stuff, but nothing like i am trying to make.

Could someone point me in the right direction here? I would appreciate it!