# Anim_XDir

Animations
5.1 OC
array
int begin Start of the interval.
int end End of the interval. If end is greater than begin then the value increases with increases XDir, otherwise it decreases.
int max_dir Largest value of XDir to be mapped. Even larger velocities lead to the same animation value (end).
The value is proportional to the object's velocity in X direction. The velocities from 0 to max_dir are mapped linearily to the interval from begin to end.
See the animation documentation for further explanations of the animation system.
PlayAnimation
("ShowSpeed", 10, Anim_XDir(0, GetAnimationLength("ShowSpeed"), 100), Anim_Const(1000));
Plays the animation "ShowSpeed" in slot 10. This could be a tachoometer in a vehicle.
PlayAnimation
SetAnimationPosition
SetAnimationWeight
Anim_Const
Anim_Linear
Anim_X
Anim_Y
Anim_R
Anim_AbsX
Anim_AbsY
Anim_YDir
Anim_Action
Clonk-Karl
2010-01