cybereality Hey! I accidentally shifted between event and _event here on the forums - but not in Godot.
To make sure, I copy pasted your code into my function - and I'm getting the same error
. I get two outputs.
What could be the reason for two outputs here?
This is a copy of what I'm seeing in the output window:
InputEventMouseButton : button_index=BUTTON_LEFT, pressed=true, position=(91, 93.333336), button_mask=1, doubleclick=false
InputEventMouseButton : button_index=BUTTON_LEFT, pressed=true, position=(91, 93.333336), button_mask=1, doubleclick=false
Edit: apparently I'm getting 2 messages, but the code only runs once. If I add the line rec += 1 (an integer that is assigned 0 when declared), in both outputs it shows as 1
. Can't really explain it then.