It would look something like this:
# assuming this script is on the player
var direction_to_mouse = global_position.direction_to(get_global_mouse_position())
velocity += direction_to_mouse * BOOST_SPEED
Depending on whether the boost is a one-time thing or sustained, you may need to slightly modify the code :smile: