Game Development Reference
In-Depth Information
You can recognize the different state times by looking closely at the top-left
corner of each gold coin where the little highlight either appears or disappears
during the animation.
Animating the bunny head game object
Animating the bunny head is going to take a little more effort as we want to trigger
all three of the available animations at certain events. The basic idea of having three
animations is to have one standard animation ( animNormal ) that appears when
nothing special is going on. Currently, when a feather power-up is picked up, the
bunny head is tinted in an orange color to signalize that it is in the state of being able
to fly at that very moment. Now, this is where the other three animations come into
play. The first animation ( animCopterTransform ) shows a transformation from a
normal bunny to a helicopter bunny by knotting its ears into something rotor-like.
The second animation ( animCopterRotate ) will replace the original color-tinting
effect by constantly rotating the knotted rotor ears of the bunny. Finally, there will be
a reversed transformation animation ( animCopterTransformBack ) that unknots the
bunny's ears again.
 
Search WWH ::




Custom Search