Game Development Reference
In-Depth Information
Animated Sprites
With the battery, you used multiple sprites derived from a single texture sheet as individuals. Another
use is to convert multiple images on the sheet into a single animated sprite. To warn your player
about an impending zombie bunny population explosion, you will fly an animated stork across the
top of the screen. Eventually, it will drop its bundle of zombie bunnies, signaling the onslaught of
new zombie bunnies dropping into the 3D scene.
The stork, minus its lower beak, will be an animated sprite. The lower beak, bundle and payload
(baby zombie bunnies), will be separate sprites that will be mostly animated with physics.
1.
In the Project view, select the Stork asset from the 2D Assets folder.
2.
Change its Sprite Mode to Multiple.
3.
Change its compression to 16 bit, and click Apply.
4.
Open it in the Sprite Editor.
5.
Open the Slice dialog and, using the default Type, Automatic, and Minimum
Size, 4, click Slice.
The stork, sliced with the default settings, is shown in Figure 9-28 .
Figure 9-28. Sprite generation with the default settings
 
Search WWH ::




Custom Search