NumSprites - originalfoo/Prison-Architect-API GitHub Wiki

##Overview

Foundations Materials

The NumSprites setting is only applicable to Materials and specifies how many Sprite0..N ... * blocks have been defined for the material.

##Syntax

This optional setting is used in materials.txt and must be within a BEGIN Material... definition block. The setting can be used only once per definition block.

    NumSprites <number>

Where <number> specifies how many Sprite0..N ... * blocks are included in the definition.

Defaults to 1.

##Example

    NumSprites 2  
    BEGIN Sprite0 x 15 y 6 END
    BEGIN Sprite1 x 5  y 2 END

##Example Mods

##Notes

The number of sprite blocks required is defined by the SpriteType setting.

Sprite blocks start at 0 and count up; the NumSprites should count starting from 1 as shown in the example above (2 blocks --> NumSprites 2).

##See Also

⚠️ **GitHub.com Fallback** ⚠️