Does it move the entire movement immediate but you want it to travel in increments?
Try multiplying the movement by the time that has passed for that one frame/loop (in seconds):
It's possible, though, that you instead want to interpolate points. That is, given two points, you want to work out the points along the line between them.
You could use something like this (this code is from
here):
template <class T>
T linear(const T& start, const T& end, const alphaT& alpha)
{
return static_cast<T>(start * (1 - alpha) + end * alpha);
}