# SetSpriteActive

## Description

Sets whether this sprite updates its animation and physics every frame, the sprite may be visibile or not, which is controlled by SetSpriteVisible.

## Definition

SetSpriteActive ( iSpriteIndex, bActive )

void agk::SetSpriteActive ( UINT iSpriteIndex, int bActive )

## Parameters

- iSpriteIndex - The ID of the sprite to modify.
- bActive - Set to 1 if this sprite should be updated, 0 if not.