End
The number of stages the animation runs through before it ends or chains.
- Applies to
- AnimType
- File
art.ini- Section
[<ObjectType ID>]- Value
- integer
- When omitted
- ComputedThe frame count of the shape the animation draws, or zero when it has none.
The animation shows one frame of its shape per stage, starting at Start. Stages count from zero, so the frames shown are Start through Start + End - 1. When the stage counter reaches End, the animation is removed or becomes its Next= animation in the same logic pass, and that stage is never drawn.
End limits only the last pass. While an animation still has passes left to run, each pass ends at LoopEnd instead. Without LoopCount=, the animation makes one pass.
End can run past the last frame in the shape, and those stages draw nothing. This happens by default when Start= picks a later frame: the omitted End is the shape’s whole frame count, so the animation shows the frames from Start to the end of the shape and then a run of blank stages. Set End to the number of frames the animation should show.
A Translucent=yes animation fades in steps placed at fractions of End, so changing End moves its fade steps.
Counts taken from the shape
Section titled “Counts taken from the shape”An omitted End, End=0 and End=-1 all mean the frame count of the shape the animation draws, which is why most animations leave End unset. The count is read from the shape whenever the animation needs it, including while it plays, so it always matches the shape the type has at that moment: the Image= shape, the variant for the current scenario’s theater, or a DemandLoad=yes shape loaded when the scenario started or a saved game was loaded.
An animation with no shape draws nothing. Unless End is set to a positive number, it counts zero stages, and its last pass ends at its first frame advance.
History
- Changed0.2.0Release candidate
Replace an animation's zero End and LoopEnd in every scenario
- Changed0.3.0In development