# NNS_G2dSetCurrentAnimation

## C Specification

      #include <nnsys/g2d/g2d_Entity.h>

      void NNS_G2dSetCurrentAnimation( NNSG2dEntity* pEntity, u16 idx );

## Arguments

pEntity | [OUT] Entity
idx | [IN] Playback animation number

## Return Values

None.

## Description

Sets the entity playback animation. No action will occur if an invalid index is input. The name of this function has changed to `NNS_G2dSetEntityCurrentAnimation`. To maintain compatibility, the previous function was kept under a different name.

## See Also

`NNS_G2dSetEntityCurrentAnimation`, `NNS_G2dInitEntity`

## Revision History

08/02/2004 Renamed function

05/28/2004 Initial version.