How to implement twin stick controls

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

I am trying to implement twin stick controls in my 3rd person RPG game. The look and feel I am aiming for is similar to Ocotpath Traveler (2D sprites in a 3D world).

enter image description here

Right now my player character is structured like this:


And my code looks like this:

if Input.is_action_pressed("rotate_left"):
if Input.is_action_pressed("rotate_right"):

But right now, it just rotates the indicator clockwise/counterclockwise when I tilt my right analog stick to the right/left. What I am trying to do is a more direct control. For example: When the player tilts the stick to the top-left, I want the indicator jump to the top-left of the character model.

How would you implement these kind of controls?