Constantly follow touch position continously updating direction

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

Hello everyone! I just started tinkering with Godot today and, reading the tutorial, I stumbled upon the first sample project, Dodge the Creeps.

After completing it, I wanted to make a mobile version of it too. The tutorial itself gives a solution, but it is not exactly how I wanted it.

The reason lies in the fact the Player reaches the touched location, changing direction only upon a new press. What I wanted to achieve is the character moving towards your finger only as long as you keep it pressed down (stopping if you lift it, instead of keeping on moving until the precise touch location is reached), also dynamically updating its movement direction while your finger moves around the screen, even if it is not lifted and pressed down again.

How can I obtain this?