How to allow multiple clicks in one time in mobile?

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

I made a joystick and a special ability button for my mobile game. But if I want to use my special ability while moving with my joystick, I need to stop moving or it doesn’t work. How can I solve this?

is “special ability” button node or is it coming from _input(event) function ? if you made this special ability button in _input(event) function try to use event.get_index() for checking multi touch i guess

horsecar123 | 2023-03-17 18:05

Sorry I forgot to mention that, it is a button node.

etometo | 2023-03-18 04:31

:bust_in_silhouette: Reply From: Calinou

Use TouchScreenButton nodes for touch controls on mobile, which support multitouch. Standard Button nodes do not support multitouch.

See an example here: Godot Tutorial: Porting Your Game’s Controls for Mobile Devices – Ramatak Inc.