Unity3D Fundamentals: Animating Sprites

  1. Load in a Sprite Sheet
  2. Splice the Sprite Sheet into individual parts
  3. Create a Sprite Render on our Game Object
  4. Create an animation clip (which will add an Animator to our Obj)
  5. Adjust the animation clip until we’re happy
  6. And as a bonus add an event trigger to spawn objects

1. Load in a Sprite Sheet

2. Splice the Sprite Sheet

3. Create a Sprite Render on our Game Object

4. Create an Animation Clip

you don’t need the _anim in the file name, it can just make it easier to find using the default search
Typically we’d start at Idle Behavior then on button press transition to “Mining” animation

5. Adjust the animation clip until we’re happy

In the gif I set it to 20 just to show the difference, you typically want this at 25, 30, or 60 depending on the art

6. Bonus: add an event trigger to spawn objects

Just a simple prefab, Instantiate, random Range, and DoTween action

--

--

An Austin TX Unity3d Developer with a unique background in marketing, design, & software development leading digital web agencies to success for the past decade

Love podcasts or audiobooks? Learn on the go with our new app.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store