Thursday, June 5, 2014

Debug It! 3

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

On this debug it activity, Scratch Cat needed to do a flip when the space key was pressed, but he wouldn't. How do we fix the problem? There is a block called "when space key pressed". You need to put it on top of the actions that you want the Scratch Cat to do and then when the space key is pressed, he will then do it.

A strategy I used was this list of steps: Go into the event tab, get "when space key pressed" block, and put it above the action(s) you want Scratch Cat to do when it is pressed.

This would be helpful when helping someone learn to debug a project by letting them know that there are different ways to make the sprites move.

No comments:

Post a Comment