i using move_and_slide() function but it never stop process how can i stop this.
Is there some ways? for move_and_slide to where i clicked perfectly. (if i click Vector(50, 42) position i want to this will be stop Vector(50, 42) position and stop function process move_and_slide()
help me please...

  • Technically you can stop _process() by calling set_process(false). However this is not what you typically want to do. Instead, arrange the logic inside _process() so it doesn't call move_and_slide() once the destination is reached or set the velocity passed to move_and_slide() to zero.

Technically you can stop _process() by calling set_process(false). However this is not what you typically want to do. Instead, arrange the logic inside _process() so it doesn't call move_and_slide() once the destination is reached or set the velocity passed to move_and_slide() to zero.

    xyz
    xyz Thanks a lot xyz! yeah i just fixed this simple logic. move to clicked position -> if distance to between this node and clicked position is under 5, velocity will be just velocity like velocity = move_and_slide(velocity)