0 votes

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

asked May 29 in Engine by kietjay123 (22 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
answered May 29 by supper_raptor (667 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.