- Edited
Hello, I want my player to follow the mouse on hold/click/move. The main problem was the hold, which I solved with coding the input into the process function and not in the input function itself.
The code is simple:
if Input.is_action_pressed("Click"):
moving = true
destination = get_global_mouse_position()
Now I got the problem that if I have a HUD or a other window open the player would still move since it still get all the inputs.
Does a solution for this exist?