๐ ๏ธ The last project: jump over the dog
How does Robo know the dog touched him? With the question touching (Dog)? from the Sensing blocks. Open its little list and you will find the names of all the characters you added; choose the dog.





- Start with gravity and jumping (the last two lessons).
- Add the dog and make it run, then come back from the right.
- The question โtouching (Dog)?โ inside if.
- Try it, and change the dog's speed until the game is fun.
๐ Another example: levels, the dog speeds up
A variable dogspeed starts at 6. Every 3 points (score mod 3 = 0) it goes up by 2 and Robo says โNew level! ๐โ. Here the dog is the one that asks: am I touching Robo? and sends โyou lostโ.




โ๏ธ Practise here in the lessonโ Close the labor open the lab in a new page โ
๐ฏ Challenge yourself
Add movement to the jump: switch the costume at every jump, and count the jumps in a variable jumps.
๐ Show the solution๐ Hide the solution




A โyou lostโ screen: when โyou lostโ arrives the backdrop changes, Robo says how to play again, then the game stops.
๐ Show the solution๐ Hide the solution




Best score: a variable best. When you lose, if score is more than best we keep it in best, and Robo says โBest score:โ and the number.
๐ Show the solution๐ Hide the solution





