Tweens at a constant value

Godot Version

Godot 4

Question

Can i make it so tweens no matter what position move at a current speed or do i need an equation for that?

speed is distance over time, through some reductions we can deduce time is distance divided by speed. Find the distance you are tweening, divide it by your speed and plug it into the tween.

const SPEED = 6
var distance := position.distance_to(goal_position)
var tween_time := distance / SPEED

tween.tween_property(self, "position", goal_position, tween_time)