Game Development Reference
In-Depth Information
The added code will draw a temporary bunny head icon that is changed in its alpha
color, scale, and rotation over time to create the animation. The progress of the
animation is controlled by the current value in livesVisual .
Event - score increased
Every time the player collects an item, a reward is given that is added to the overall
game score. The current score and a gold coin icon are shown in the top-left corner
of the game screen. We want to add two subtle effects that begin to play when an
increased score is detected. Firstly, we want the score to slowly add up to the new
score. Secondly, the gold coin icon will shake a bit while the score is still adding up.
Here is a screenshot of the combined animation in five steps where some items have
been collected:
 
Search WWH ::




Custom Search