From 39972da20b75a1d6097e5a6cb6369ef337cb1793 Mon Sep 17 00:00:00 2001 From: Tim Young Date: Wed, 4 Oct 2017 03:22:24 +0200 Subject: [PATCH] Update AnimationsInDepth --- AnimationsInDepth.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/AnimationsInDepth.md b/AnimationsInDepth.md index ed25d60..c9c49dd 100644 --- a/AnimationsInDepth.md +++ b/AnimationsInDepth.md @@ -9,6 +9,8 @@ When you instantiate a named sprite, you want to make sure you set all the defau ## Multiple Animations in a Sprite A Sprite can have multiple animations. For example, you may have an adventurer who has animations for walk left, walk right, jump left, jump right, climb up, fall down, etc. They are all the one adventurer, so they are all in one sprite. You can tell the sprite to display animation 0, and it looks like he is walking right. Tell it to do animation 1, and it looks like he is walking left. +![An image with multiple animations](images/ManMultipleAnimations.png) + The SpriteLibrary is written in C#, and so the indexes start at Zero. The first animation is 0, the second is 1, etc. I usually have all the frames for one sprite in one image, but you do not need to do that. You can pull frames from multiple images for different animations. BUT, every animation needs to come from one image. At the time of the writing of this documentation, I do not have a sprite, or animation creation method that pulls frames from multiple images.