Skip to content

PingPong

Reverses the animation's direction each time it reaches either end of its frames.

Specification
Applies to
AnimType
File
art.ini
Section
[<ObjectType ID>]
Value
boolean
When omitted
no

A ping-pong animation turns around at each end of its range and plays back the way it came. It does not jump back to its first frame or finish.

The turning points depend on how many passes the animation has, which is normally its LoopCount. The frame numbers below assume Start is 0, the usual case; that page explains how a non-zero Start shifts them.

PassesTurns at the topTurns at the bottom
OneFrame EndFrame 0
More than oneFrame LoopEndFrame 0

The animation shows the top frame for one step before it turns back. By default End and LoopEnd equal the shape’s frame count, which is one past its last frame. The top turning frame then draws nothing, so the animation blinks each time it turns at the top. To avoid the blink, set End or LoopEnd to the frame count minus one, the number of the last frame.

See also — LoopCount, LoopEnd, End, Reverse, Start