concept desk detection script in category scratch

appears as: desk detection script, desk detection script, The desk detection script
Hello Scratch!: Learn to program by making arcade games

This is an excerpt from Manning's book Hello Scratch!: Learn to program by making arcade games.

The teacher, Ms. Finebean, is the equivalent of Mario in Super Mario Bros. She’s the player character that the player controls, making her jump over students and onto desks, grabbing clocks along the way. She has five scripts: a movement script, jumping script, falling velocity script, falling script, and desk detection script. All scripts in this section are applied to Ms. Finebean, so go put the blue box around the Teacher sprite in the Sprite Zone and don’t move the blue box until you program the kindergarteners in the next section. Remember, the names or values on your blocks may differ slightly from time to time, so use the completed script images to make sure you chose the correct block.

Figure 13.16. The desk detection script knows when Ms. Finebean has landed on top of the desk.