0 votes

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

in Projects by (157 points)

1 Answer

0 votes

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.

by (476 points)
Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.