Adding a simple animated character
Now that we have our background in the world, let's add in our player sprite:
From the
Art Assets
folder included in the example code for the chapter, bring the three sprites for the plane into the Project tab'sAssets/Sprites
folder.Then, from the
Assets
folder, create a new folder namedAnimations.
From there, select all three images (hold Ctrl and then select each of them) and then drag and drop them into the Scene tab to bring them into the level. You'll see a new window pop up that says Create New Animation. From there, browse to the
Animations
folder we just created and then open it. Afterwards, change the File name: property toPlaneFlying
and then press Save. This will create an animation and controller that will automatically play it. We will talk about animations in more detail in the next chapter, but currently, this will always just play an animation using these three frames over and over again unless we stop it via code.The plane looks a bit...