Method CreateAnimatedSprite
CreateAnimatedSprite(string)
Creates a new AnimatedSprite using the AnimationTag element with the specified name in this SpriteSheet.
public AnimatedSprite CreateAnimatedSprite(string tagName)
Parameters
tagName
stringThe name of the AnimationTag element in this SpriteSheet to create the AnimatedSprite with.
Returns
- AnimatedSprite
The AnimatedSprite that is created by this method.
Exceptions
- KeyNotFoundException
Thrown if this SpriteSheet does not contain an AnimationTag element with the specified name.