Open the Scratch software, delete the cat sprite, and choose the blue dog sprite. Import all three shapes for the dog into his costumes area.
Click on the scripts area of the sprite. Choose the "Control" programming menu (gold, top right of the eight choices on the left top part of the screen) and drag and drop a "when green flag clicked" block into the script area.
Then from the "Control" menu, drag and drop a "repeat 10" block, click in the white window, and change the "10" to "5."
Go to the "Motion" menu and drag and drop a "move 10 steps" INSIDE the repeat block. Check at the bottom of this web page to see how it should look, "nested" inside the gold "repeat" block.
Go to the "Control" menu and drag a "wait 1 second" block below the "switch costume" block. Click in the white window and change the "1" to "0.5" seconds.
To complete the cycle of the dog "walking", go to the "Looks" menu, and drag another switch to costume _ _ _" below the move 10 steps" block. Pop up the costume window, and select "dog2-b". This should create the illusion of the dog's legs going back and forth as it walks.
To complete the "repeat 5" block, go to the "Motion" menu, and drag and drop an "if on edge, bounce" block below the "wait 0.5 seconds" as the last block INSIDE the repeat unit. This programming block prevents the sprite from going off screen and becoming "stuck."
Just to the left of the sprite's name, there are three sets of arrows, which control what directions the sprite can move. Click on the middle of these three icons, with the two arrows going straight to the left and right. That way, the dog will go back and forth, in a normal conventional movement we would expect dogs to do.
Go back to the "Looks" menu and drag a third "switch costume" block BELOW the end of the repeat block. Pop up the window and choose "dog2-a", so that it looks like the blue dog is sitting, with his paw to his mouth.
Drag a "say 'hello'" block below the "switch costume" block.
Click inside the white window, delete "hello" and type something for the dog to say. Adjust the numbers of seconds, to fit how long it would take the viewer to read the dialogue balloon.
Drag a fourth "switch costume" block "switch costume" block. Pop up the window and choose "dog2-b", to suggest the dog is moving a little while he talks.
Your entire script should look like this.
Return to Scratch Main Page