Table of Contents

 
RemoveAnimation
 

Purpose

Removes a specific animation from a sprite object

 

Protoype

void CSpriteMngr::RemoveAnimation (string str_anim_id)
 

Parameters

anim_id the ID of the animation to remove
 

Description

This function removes a single animation (and its timer object) from a sprite object. The animation to remove is specified with str_anim_id.

NOTE: There must be a locked sprite object in order for this function to work

 

Use

CSpriteMngr sprite;
sprite.RemoveAnimation("my_anim");
 

Prev: RemoveAllSprites