"Phantom Hourglass" Style Controls

Hi guys. What would be involved in trying to make a control scheme like that of TLOZ: Phantom Hourglass on the DS? Is it just a matter of raycasting on the “ground” and moving towards that location? Would there be a way to calculate relative distance from the raycast point to the player character to adjust speed (like PH does)?

This is probably deceptively simple, but I’m trying to find an example of a control scheme like this in unity, but the closest thing I can find is RTS style controls which are not exactly the same thing.

Any help is appreciated. Thanks!

There is no example of that.
Thought it also wouldn’t be hard as you already understood how it works.
The only thing that is missing in your equation is a threshold value in the distance.

Above that value → run (at variable speed if desired)
below equal that value → walk

alternative is walk / run and have a button that enables / disables run.

a distance based approach might work as well but could be a bit tricky as humans have different sized fingers so it can be pretty frustrating especially for short range movements where you don’t see your char at all. the NDS has a pretty precise small pen (-> non disturbing visually) which makes such a scheme working much better.

Inotia thought uses a similar way of doing it just that it also has “click to attack” and then automatically attacks the target as long as you don’t click anywhere else. Thats a pretty nice thing actually