Debug it part i:
Click on the buttons below to debug the following programs. Each project will have a goal in mind, but somewhere along the way somebody messed up the coding sequence!!! Can you fix the code?!? Click "See Inside" to see the script!
When the green flag is clicked, both Gobo and Scratch Cat should start dancing. But only Scratch Cat starts dancing! How do we fix the program?
|
In this project, when the green flag is clicked, the Scratch Cat should start on the left side of the stage, say something about being on the left side, glide to the right side of the stage, and say something about on the right side.
It works the first time the green flag is clicked, but not again. How do we fix the program? |
The Scratch Cat should do a flip when the space key is pressed.
But when the space key is pressed, nothing happens! How do we fix the program? |
In this project, the Scratch Cat should pace back and forth across the stage, when the Scratch Cat is clicked.
But the Scratch Cat is flipping out -- and is walking upside down! How do we fix the program? |
In this project, when the green flag is clicked, the Scratch Cat should say "Meow, meow, meow!" in a speech bubble and as a sound.
But the speech bubble happens before the sound -- and the Scratch Cat only makes one "Meow" sound! How do we fix the program? |
debug it part ii: gaming
Click on the buttons below to debug the following programs. Each project will have a goal in mind, but somewhere along the way somebody messed up the coding sequence!!! Can you fix the code?!? Click "See Inside" to see the script!
In this project, the "Inventory" list should be updated every time Scratch Cat picks up a new item. But Scratch Cat can only pick up the laptop. How do we fix the program?
|
In this project, Scratch Cat gets 10 points for collecting Yellow Gobos and loses 10 points for colliding with Pink Gobos. But something isn't working!
How do we fix the program? |
In this project, Scratch Cat is thinking of a number between 1 and 10. But something is wrong with the guess checking -- it doesn't work consistently.
How do we fix the program? |
In this project, the "# of hits" display should increase by 1 every time the Scratch Cat is hit by a tennis ball. But the "# of hits" increases by more than 1 when Scratch Cat is hit.
How do we fix the program? |
In this project, Scratch Cat is navigating a maze to get to the yellow rectangle. But Scratch Cat can walk through walls. How do we fix the program?
|