Skip to content

AnimRate

The number of game frames each frame of the projectile's flight animation is held for.

Specification
Applies to
BulletType
File
art.ini
Section
[<Image ID>]Image ID: Image= value; no section when omitted
Value
integer
When omitted
0

A counter is loaded with the figure when the projectile is created and reloaded every time the shape steps, counting down one per game frame; the shape advances when it reaches zero. AnimRate=1 therefore shows a new frame every game frame, 15 a second, and AnimRate=4 shows one every four.

The figure is consulted only while the animation runs, which needs AnimLow or AnimHigh to be other than 0.

The setting is read from the art section named by the projectile’s Image. That assignment is required. Without it the lookup runs against an empty section name, so nothing here is read — not even from an art section named after the projectile, which is where its Voxel setting is still found.

See alsoAnimLow, AnimHigh, Image