Game Development Reference
In-Depth Information
Figure 9-47. The stork, bundle, and lower beak in front of the battery sprites
The bundle requires two more animation clips: a fall sequence and a hit/open sequence. They will be
added to Bundle.
1.
Select Bundle, and open the Animation editor.
2.
From the drop-down menu showing Bundle Carry, select [Create New Clip].
3.
Name it Bundle Fall , and save it in the Animation Clip folder.
4.
Drag the Bundle_3 asset from the Project view into the Animation editor.
A Sprite Renderer, Sprite track is created with Bundle_3 at frame 0.
5.
Zoom the Animation window to show up to about 0:20.
6.
Drag Bundle_4 into the editor at time 0:05.
7.
Drag Bundle_5 into the editor at time 0:10.
8.
Drag Bundle_4 into the editor again at time 0:15.
9.
Click Play, and watch the falling animation clip play.
10.
Create another new clip named Bundle Open .
11.
Drag the last 4 Bundle sprites (6, 7, 8, 9) into it about 0:1 apart from each other.
12.
Zoom out in the Animation editor by using the middle mouse roller, and pan
until you can see time 4:00.
13.
Drag one more fully open bundle sprite into the Animation editor, and
position it at time 4:00.
14.
Select the Bundle Open clip in the Project view, and uncheck Loop Time.
15.
Cloes the Animation view.
16.
Select Bundle, open the Animator tab, and view the three clip/states.
 
Search WWH ::




Custom Search