Thanks for the reply Michael, that’s also a good way to look at it and I’ll surely keep that in mind 🙂
But after a long search last night I finally found what I was looking for. I’m not sure what it all means but it does exactly what I wanted.
I can completely control the speed of the animation by setting the Slider control to the speed I want. 🙂
Td = framesToTime(1, 1.0 / thisComp.frameDuration);
x = 0;
v = effect("Slider Control")("Slider");
n = timeToFrames(time + thisComp.displayStartTime, 1.0 / thisComp.frameDuration);
for (k=0; k<=n; k++)
x = x - v.valueAtTime(k*Td);
x = x + position[0];
y = position[1];
[x,y]