Game Development Reference
In-Depth Information
The new animation dope sheet system (as shown in the preceding screenshot) is very ad-
vanced; in fact, now it tracks almost every change in the inspector for sprites, allowing
you to animate just about everything. You can even control which sprite from a spritesheet
is used for each frame of the animation.
The preceding screenshot shows a three-frame sprite animation and a modified x position
modifier for the middle image, giving a hopping effect to the sprite as it runs. This ability
of the dope sheet system implies there is less burden on the shoulders of art designers to
craft complex animations as the animation system itself can be used to produce a great ef-
fect.
Tip
Sprites don't have to be picked from the same spritesheet to be animated. They can come
from individual textures or picked from any spritesheet you have imported.
The Animator component
To use the new animation prepared in a controller, you need to apply it to a game object in
the scene. This is done through the Animator component, as shown here:
Search WWH ::




Custom Search