Update AnimationsInDepth
parent
b993d4b430
commit
39972da20b
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user