+1 vote

im trying to make a mobile which include multiple touch input at a same time how do i seperate them depending on which region of the screen it touch

in Engine by (41 points)

1 Answer

0 votes

use TouchScreenButton if you are taking multiple touch inputs (button press).
do something like this

func _input (event):
    #evaluate touch 600 pixels from left side of the screen
    if event.position.x > 600:
        if event is InputEventScreenDrag:
            #handle screen drag here
        elif event is InputEventScreenTouch:
            #handle touch
by (745 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 Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.