- Home /
Animating a Character Sprite Sheet.
Can someone show me some examples how to animate a sprite sheet like this? http://www.spriters-resource.com/snes/chronotrigger/crono.png Ive read everyone on a SpriteManager, But it says attach scripts, But i dont think those scripts come with my copy of Unity, And i cant find download links for it either.
Answer by Muuskii · Jul 12, 2012 at 03:17 PM
This tutorial: http://www.piecesinteractive.se/blog/spritemanager-beginners-guide-unitydevelop
Comes with details on how to download and install the scripts you are looking for (the free version though) I did find the one line of code that I was looking for being hidden outside of code blocks though. If you have the same problem, you're looking for:
mySpriteManager.AddSprite(gameObject, WorldWidthOfSprite, WorldHeightOfSprite, XonTheTexture, YonTheTexture, WidthOnTheTexture, HeightOnTheTexture, false);
Though you probably want to save the return value from that function cause you're going to end up needing it.