The value depends on the distance travelled by the aboject. Every pixel the object moves increases the value a little bit. Once end has been reached the value is reset to begin. This is a combination of
Anim_AbsX and
Anim_AbsY, where the movement in both coordinates is considered.
Siehe die
Animations-Dokumentation für eine Beschreibung des Animationssystems.
PlayAnimation("Fly", 5, Anim_Dist(0, 0, GetAnimationLength("Fly"), 20), Anim_Const(1000));
Plays the animation "Fly" in slot 5, superimposing any other potential animations in slot 5. The animation is played the faster the faster the object moves. Once it moved 20 pixels the animation has been played from begin to end and restarts at its beginning. This could be used for an engine animation of a flying object where the engine should only be animated as long as the object is moving.