Using the touch screen to draw a path that an object will follow

Hey everyone,

So I am currently designing a small mobile top down puzzle game and have begun prototyping in Unreal 4.

What I am trying to figure out now is how to implement the core mechanic. The core mechanic of the game is that in order for the player to move their character throughout the puzzles, they need to draw the path they wish the character to follow with their finger. They can re draw it as many times as they like, and it is only when they hit play that the character will actually follow the path that the player set out for them.

So broken down into pieces I am trying to figure out :
-How to draw a line using touch input
-How to have the player pawn receive this input as a path to move along

Any suggestions and advice would be greatly appreciated, as I am really stuck here! Thanks so much!

you wanna project the touch location (as it gives you the screen coordinates) to a world location, then use a nav mesh + move to point command. the “top down example” starter pack behaves like this

also fyi there is a marketplace asset that addresses this - Mobile Touch Navigation in Blueprints - UE Marketplace

Awesome this is perfect thank you so much!!!