The Godot Q&A is currently undergoing maintenance!

Your ability to ask and answer questions is temporarily disabled. You can browse existing threads in read-only mode.

We are working on bringing this community platform back to its full functionality, stay tuned for updates.

godotengine.org | Twitter

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 (55 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 (125 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 Frequently asked questions and 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 [email protected] with your username.