Is it possible that mobile user will make 2+ touches on the screen at the same time, and if yes - how to handle that?

Disclaimer: I have never played on mobile myself.

Hi guys.
I have began doing UI controls for my game:


Specifically Jump and Joystick things.
In emulator, they work great, but I’m unsure how they will work in real case, at least because user usually has 10 fingers, and this means that they can tap on screen a lot - what to do if it, for example, touches joystick from 3 diffirent positions? Or what to do if user slides their finger off Jump button and then slides it back, or instead of sliding back just touches it with another finger?

If you have a phone then Install Roblox and find it out. Otherwise look at your code and think what logically would happen. If that didn’t work ask someone with Mobile acces to play the game.

1 Like

I’m relatively sure roblox handles this for you. I may be wrong, but I know that roblox already automatically offers a joystick and jump system, in the same style you’re making one. I would highly recommend testing for this as said by 250Julian, but I don’t think you need to worry or even make UI here.

1 Like

So, roblox offsers me UserInputService, which gives unique instance InputObject for each touch. So, I can just track them.

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