Making a CharacterBody2D glide to mouse

Godot Version

4.7 Stable

Question

I’m want to make the player glide toward the mouse when it’s clicked like how Scratch has a glide to block. Any help would be appreciated.

There are lots of examples of movement code at https://docs.godotengine.org/en/stable/tutorials/2d/2d_movement.html