Hey all! Okay I seem to have a knack for making stuff fire twice. xD
I have this function that checks for a left mouse click (anywhere, a global click), I set it up like in the example below. print(_event.as_text()) fires twice for one click - why is that? Shouldn't it fire just once for 1 click? I didn't add to the code cause I want to iron this kink out first.
func input(event):
if _event is InputEventMouseButton and _event.button_index == BUTTON_LEFT and event.pressed:
print(event.as_text()) # this line runs twice
The script is attached to a Node2D who is a child of root node of type Node.
I have Godot 3.4.4, Windows 10.
Would appreciate anyone's help!