How to make my dash action smoother?

Godot Version

4.4.1

Question

I ha ve set up a dash action like so:

var dash = Input.get_action_strength(“dash”)

if dash > 0 and dash_possible == true:
dash_possible_timer.start()
dash_duration_timer.start()
movement_speed = 450
dash_possible = false

(Considering I have two timers sending signals, one for a dash cooldown to change dash_possible to false and another for the duration of the action, after timeout reverting movement_speed to my original value of 40)

And it works, I adjusted speed and duration in a way that makes sense for my game, but still it is too ugly, there is no transition…

I couldn’t get any of my ideas to fix that to work… Could someone help me, please?

try looking at move_toward this way you can have the dash accelerate using the delta variable in the function something like move_toward(movement_speed, dash_speed, acceleration) with movement_speed being 40, dash_speed 450, and acceleration something like 200 or whatever number works for you and this way you wont need a second timer to change move speed back

Thank you very much, I hadn’t thought of that!