Example 4:  Sprite animation