0 votes

I made a tiny game with a menu made of Buttons and other UI elements. I exported the game several times trying stuff and reached the conclusion that the UI node have some troubles.

First: To "touch" a buton i have to touch it twice. Probably because they are inside of a panel?

Second: After i access them (the pulsed style appears), the game freezes and does nothing. I'm sure the next scene isn't guilty as i compilled the game with that level as starting scene and works beautifully. My phone has Android 9 and the app was always made with GL2

I read somewhere about the amount of styles making the ui on android slow but nothing concise.
I would want to know what is the best option to build an ui that works both on PC and Mobile.

Here is a link to the apk (41 Mb) (it will start on the game, just die and it will take you to the main menu)

GOOGLE DRIVE LINK

Sorry for the bad english, isn't my lang.

asked Mar 31 in Engine by Mautar55 (12 points)

1 Answer

0 votes

First: To "touch" a buton i have to touch it twice. Probably because they are inside of a panel?

Try setting the mouse mode to "Ignore" on nodes that shouldn't take any mouse/touch input.

Second: After i access them (the pulsed style appears), the game freezes and does nothing.

We need more information to troubleshoot this issue. Try connecting your device to your PC and enable ADB, then run adb logcat. Run the app on the phone until the project freezes, and paste the log here.

answered Apr 1 by Calinou (5,674 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.