- Edited
Hello, I am building a game for android. In it I am trying to use the position of multiple screen touch events. Consider following code:
func _input(event):
if event is InputEventScreenTouch:
if event.pressed:
if event.index == 0:
move(event.position)
elif event.index == 1:
shoot(event.postion)
Now the problem is the second touch is giving me the position of the first touch, instead of the second touch.
How do I access that position?
Honestly Godot seems to be very bad for mobile and I'm considering switching to Unity.
Also: How to format code to appear in a separate block and font like tutorials do it ?