# NNS_G2dSetEntityCurrentAnimation

## Syntax

      #include <nnsys/g2d/g2d_Entity.h>

      void NNS_G2dSetEntityCurrentAnimation( 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 was changed to `NNS_G2dSetCurrentAnimation`. The previous function will remain to preserve compatibility.

## See Also

`NNS_G2dSetCurrentAnimation
`

`NNS_G2dInitEntity
`

## Revision History

2004/08/02 Renamed function.

2004/05/28 Initial version.

CONFIDENTIAL