# SetSpriteCategoryBit

## Description

Assigns or removes a sprite from a particlar category. There are 16 categories that a sprite can belong to, of which a sprite can belong to any number at once. This command is similar to SetSpriteCategoryBits except this command sets one category at a time whilst that command sets them all at once using a bit mask.

## Definition

SetSpriteCategoryBit( iSpriteIndex, category, flag )

void agk::SetSpriteCategoryBit( UINT iSpriteIndex, UINT category, int flag )

## Parameters

- iSpriteIndex - The ID of the sprite to modify.
- category - The category to change, must be between 1 and 16 inclusive.
- flag - 1 to make the sprite a part of this category, 0 to remove it.