Unity Sprite Animation Package
A downloadable Package
This is a simple solution to easily make 2D animations from sprites/spritesheets, along with a few other helpful components to make your life easier.
You can check out the demo here:
https://ilangreuter.itch.io/sprite-animation-demo
Sprite Animation - Play your animations and switch between them! Highly configurable and easy to set up!
- Create many different animations.
- Set a default animation, great for idles!
- Option to automatically play on startup.
Sprite Animation Data - Essentially a bunch of settings that make up each individual animations.
- Define where the animation starts and ends.
- Set how long each frame lasts and how many loops to play.
- Specify what animation, if any, should be played after this one.
Besides the Sprite Animation component, this package also comes with these additional components:
Random Sprite - Switch to a random sprite from a selection.
- Can randomly flip sprite on X or Y axis as well.
- Useful for placing random clutter objects to provide variation!
Sprite Blinker - Show (or hide) your sprite for only a moment!
- Can enable/disable the sprite renderer (or gameobject) for a short duration, then automatically return it again.
- Optional delay.
- Useful for making something flash/blink for a moment, or making something visible a second after an action.
Sub Event - Can fire an event immediately, or after a delay.
- Change your mind? Cancel the event!
- Can pass a bool along as parameter, useful for setting the state of objects.
- Useful for when you want an effect to happen a certain trigger, but not directly after the trigger occurs.
- Comes with a handy text field so you can add notes!
- Useful to break up those long event chains into manageable chunks.
Why use this instead of Unity's animator?
Personally I feel like the built-in animator, while certainly useful, has too much overhead. It requires each animation to have its own file and requires a bit more setup to get multiple animations working together. Because of this I prefer to have a simpler solution for when you really just want to change out the sprite. If you simply prefer to use the animator, that's fine too.
You are free to use this asset in your projects as you see fit. I do ask that you do not claim and/or redistribute this code as your own and if possible, I would appreciate a shout-out.
Found a bug? Do you have any questions or have an idea on how this package could be improved? Let me know and I'll try to help as best I can!
Status | Released |
Category | Tool |
Author | Ilan Greuter |
Tags | 2D, Animation, art, Automation, Game Design, Game engine, Indie, Pixel Art, Sprites, Unity |
Download
Click download now to get access to the following files: