# Anim_R

Animations
5.3 OC
array
int begin Start of the interval.
int end End of the interval. If end is chosen to be greater than begin then the value increases with clockwise rotation, otherwise it decreases.
The value depends on the rotation of the object. Upward rotation (0 degrees) is mapped to the value given by begin, and moves toward end when the object rotates clockwise, up to end after one revolution (360 degrees).
See the animation documentation for further explanations of the animation system.
PlayAnimation
("Turn", 5, Anim_R(0, GetAnimationLength("Turn")), Anim_Const(1000));
Plays the animation "Turn" in slot 5 and superimposes any other potential animations in slot 5. The animation is synchronized to the object's rotation so that the full animation is played once per revolution.
PlayAnimation
SetAnimationPosition
SetAnimationWeight
Anim_Const
Anim_Linear
Anim_X
Anim_Y
Anim_AbsX
Anim_AbsY
Anim_XDir
Anim_YDir
Anim_Action
Clonk-Karl
2012-04