Here is a code sequence that needs some debugging. In this program, we want a cat and ladybug to interact. Every time the program is run, we want the cat to spin in a complete circle, while staying on the ground, and then move to the ladybug. When the cat reaches the ladybug, we want the ladybug to play the sound “Hey.” The problem is the cat is moving in a huge circle that ends in the sky and never moves to the ladybug. The other problem is that the ladybug plays the sound “Hey” right away, instead of playing that sound when the cat moves to it. Run the code multiple times. Can you debug and come up with a solution so the cat spins and then moves to the ladybug and then the ladybug plays “Hey”?
WARNING: Don't look at the possible solution sprites until you've tried debugging the code first yourself!