TS7-Pro 7-inch Touch Screen
Calculate the score!
Create a new score variable. When the Trees and Trees2 sprites move to the right side of the Parrot sprite, it means that
Parrot has crossed the Trees and Trees2. At this time, we will add score+1. In order to avoid always adding points, we
need to add it after score+1 Wait 1 second for the code. (This code is required in both Trees and Trees2 sprites!)
190 Chapter 5. PROJECTS AND ACTIVITIES