Skip to content

LoopEnd

Changed in 0.3.0

The frame that ends every pass of a looping animation except the last.

Specification
Applies to
AnimType
File
art.ini
Section
[<ObjectType ID>]
Value
integer
When omitted
ComputedThe End stage count, taken as a frame number.

The value is a frame number in the shape. End, by contrast, counts stages from Start. When a pass reaches this frame, the animation jumps back to LoopStart before the frame is drawn, so the LoopEnd frame itself never appears.

It ends every pass except the last. The last of the LoopCount passes runs to the end of the End stage count instead. If the two settings disagree, the last pass plays a different stretch of the shape than the passes before it.

An omitted LoopEnd, LoopEnd=0 and LoopEnd=-1 all take the End stage count: the End that is set, or the shape’s frame count when End is omitted, 0 or -1. Setting End= alone therefore ends the middle passes at the same number. That count is treated as a frame number, so with a nonzero Start the middle passes stop Start frames short of where the last pass ends.

A Reverse=yes animation starts every pass on frame Start plus LoopEnd and steps backward. With a nonzero Start and more than one pass, each reversed pass ends at its first frame advance, as Start describes.

A structure with a charging weapon (Charges=yes) uses this value from the animation in its TurretAnim slot. The weapon is charged once the charge sequence reaches that frame.

History

  1. Changed0.2.0Release candidate

    Replace an animation's zero End and LoopEnd in every scenario

  2. Changed0.3.0In development

    Take an animation's frame counts from the shape it draws