Add the first frame of the clip (hit1) and click AutoFill1.9 to fill the rest of the frames. Autofill1.9 finds frames numbered sequentially from the currently selected frame.Īdd another clip and call it "hit". All the rest of the frames will be automatically added. Select the first frame (walk1) and click AutoFill1.9. Set up the window as shown below.Ĭreate a new clip and name it "walk". In this chapter, we'll cover the following recipes: f Setting up sprites f Multiple sprites f Animating with spritesheets f. This will create a new clip which you can edit.
Select the newly created sprite animation in the project window, and open the sprite animation editor by clicking Open Editor.Ĭlick "Create > Clip" in the sprite animation editor. Create it in the collection by selecting "Create > tk2d > Sprite Animation" (You will find this under the 2D Object submenu in Unity 4.6 and higher) in the Project Window. To animate something in 2D, we’re going to need multiple frames to iterate over. Packing Spritesheets and Defining Animation Clips with Unity. The game object is not technically a sprite and it has no animations associated to it. We will now proceed to create the Sprite Animation. Even though we have a project with a game object, we’re not actually rendering anything to the screen. This is the sprite collection set-up done. Before you click Commit, set the Anchor to LowerLeft and click apply - this will set all the anchors on all newly created sprites to the lower left.Ĭlick commit on the sprite collection. The newly added sprites will all be selected.
We put ours in /Assets/Walkthrough/animation/sprites.Ĭreate a sprite collection and add all these sprites to the collection. These sprites are from SpriteLib.Įxtract the textures into your Unity project workspace.
You can download these sprites from here. We will be using some additional sprites for this example which aren't distributed with the toolkit.
This tutorial will show you how to create a Sprite Animation. The game will be in 2d, for android and Im having trouble doing.