Skip to content

FindSpriteAnimation

Description

Attempts to find an animation entry by name.

Parameters

  • aniFrames The SpriteAnimation to search in.
  • name The name of the animation entry to search for.

Return Value

Returns the ID of the found animation entry as a uint16. The return value will be -1 if the animation entry wasn't found.

Syntax

RSDK.FindSpriteAnimation(uint16 aniFrames, const char *name);
SpriteAnimation.Find(const char *name);

Example

uint16 listID = RSDK.LoadSpriteAnimation(MyObject->aniFrames, "My Animation Entry");
uint16 listID = sVars->aniFrames.Find(sVars->aniFrames, "My Animation Entry");