Buttons for web games

Godot Version

4.3

Question

Hi! I recently came across the ‘TouchScreenButton’ node in godot. I know there are control node buttons but since the ‘TouchScreenButton’ exists, does that mean that when when you want to make your game or GUI work on both pc and mobile (since most web games are supposed to be like that), you need to use both? Are there any alternative ways that are more efficient than this or perhaps this is the only option? If it is, can you also give advice to not make the project messy with this method? Thanks in advance!

Actually if you use a normal button, then in mobile only one button will be press by one finger but touch screen button allows to press with multi fingers, this button can be more than 1.

1 Like

Does this mean using control node buttons like normal buttons and texture button also works on mobile?

1 Like

Yeah, just need to adjust some settings in the project settings, go to pointing section inside that and turn on everything.

1 Like

Thanks a bunch!

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.