So i want to make a strategy game like starcraft.
When clicking somewhere on the screen, the player should move to that location.
Because move_to()
was removed, i can't imagine how i can create a click-to-move system.
I tried
if Input.is_action_pressed("left_click"): //made an input map for left_click
move_and_slide(get_global_mouse_position())
but the player can move in just one direction
Help