how to make controll sprites button

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

It’s really hard for me. Help me.
I’m trying to make an Android game.
So I’m trying to create a corresponding player control key.
I’m going to make it look like an arrow.)
I just don’t know how.
I’m not good at English, so I can’t see the tutorial properly.
I’m barely studying.
Please help me.

I’m not good at English

What language(s) are you speaking then? Maybe someone else here does as well and might be able to help you in your native language. :slight_smile:

njamster | 2020-07-23 11:52

:bust_in_silhouette: Reply From: Klim Storozhenko

You can use TextureButton

If you want to check, when a button was pressed, you can use gui_input event

:bust_in_silhouette: Reply From: deaton64

I only speak English, so maybe that will be a problem.

You want to use a touch screen button
Textures can be added to reflect when the button is pressed and not pressed.
Add a signal to check for when it is pressed or released.

When testing in the editor, go to Project Settings/ General/ Input Devices / Pointing /
Select the option “Emulate Touch From Mouse” so the button will work when you click using the mouse.

I’m so happy to see right way.
Thank you!

DevJElly | 2020-07-23 12:01