0 votes

hi
i want to create a mobile platformer game using controler buttons how do i setup them?
do i have to crate a buttom node the signal it or somthing?

Godot version 3.3 stable
in Engine by (59 points)

1 Answer

0 votes

You could do this with either the Control nodes using buttons as you suggested or you could use the TouchScreenButton 2D node. You'll need sprites for your controls if you use TouchScreenButton. For quick prototyping, I'd recommend using Control buttons, since you can edit their appearance much more easily.

Both options do use signals. such as button_down(), button_up(), and pressed(). If you need a tutorial to help you, there are several on YouTube, such as this one.

by (122 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.