Thursday, June 5, 2014

Debug It! Week 1

Debug It 1:
Since both Gobo and Scratch Cat are supposed to dance but only Scratch Cat does, you have to click on Gobo's sprite icon and see if there is a command, "When the green flag is clicked" at the top of the commands listed in the designated space. If not, put one there and it should work.

http://scratch.mit.edu/projects/23245827/#player

Debug It 2:
In order for the project to loop, you have to make sure that there is a command that sets it back to the original space. If you don't have this, you are going to have Scratch Cat in the ending place when it loops again. To fix this, you should put a "go to x:__, y:__" command at the beginning with the coordinates of wherever Scratch Cat starts off for it to loop correctly.

 http://scratch.mit.edu/projects/23246045/#player

Debug It 3:
Make sure that the command "When space bar is hit" is in the list of commands instead of a command like "When green flag/this sprite is clicked".

http://scratch.mit.edu/projects/23246193/#player

Debug It 4:
Take out any commands that tell the sprite to turn a certain amount of degrees. If you don't already have commands like "glide to x:__, y:__" with the coordinates you want it to go to, add those in and it should be fixed.

http://scratch.mit.edu/projects/23246341/#player

Debug It 5:
Put a repeat command around the "say meow" command. Also you may want to put a "wait __ seconds" before the speech bubble command.

http://scratch.mit.edu/projects/23246591/#player

Reflection:
I think some of these Debug It challenges were interesting and made you think about all the factors that goes into programming a computer. 

No comments:

Post a Comment