Skip to content

StateAIAdvance

The frames a particle spends in each animation state.

Specification
Applies to
ParticleType
File
rules.ini
Section
[<ObjectType ID>]
Value
integer
When omitted
4

A larger figure plays the sequence more slowly. Gas, WeakGas, Smoke, Fire and Web particles use it; Spark and Railgun particles have no animation states and ignore it.

Particles of one type do not step in unison. Each particle starts its steps at a different point, and about half the particles stay one frame longer in each state. With the default 4, those particles step every 5 frames. A burst created together therefore drifts out of step within a few states.

A Fire particle marked Normalized=yes ignores this figure and works out its own interval from its flight.

The figure is held in one signed byte: 128 to 255 wrap to negative values, and 256 wraps to 0. A negative interval acts as its positive size: -4 steps every 4 frames. The half that would stay one frame longer steps one frame sooner instead, every 3 frames.