Actually, you don't need to do that, as the tween module has a setting in which you can set speed instead of duration, so the speed can be fixed regardless of the distance.
Code: ags
oBeachCloud1.TweenX(Cloud1Speed, CloudsEndPosition, eEaseLinearTween, eNoBlockTween, 0.0, eTweenSpeed);