movement buttons multitouch control

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

i’ve been trying to figure it out for a few hours but i’m just out of ideas, can someone help me create a system where i have 4 buttons for movement (up, down, left, right) which are actually touch controlled, but they can also be pressed in the same time (for example if you press up and left you go diagonally), it’s just giving me too much problems so any help is appreaciated

:bust_in_silhouette: Reply From: DodoIta

You can use TouchScreenButton nodes for the controls, as for the direction you could use a normalized Vector2 that you modify whenever a button is pressed.