This preview shows pages 1–2. Sign up to view the full content.
This preview has intentionally blurred sections. Sign up to view the full version.View Full Document
Unformatted text preview: Lab 02: Multiple Sprites in Scratch CNIT 15500 Prof. Harriger bring headphones to lab Due: Monday, 9/12/11, 10 pm Fall 2011 15 Points Description
You are going to continue using Scratch to create more advanced animations. We will use the features covered in the first and third sets of video lessons found on http://learnscratch.org. These lessons include more detailed explanations of some things we covered in last week's lab as well as new features that we didn't cover. You should complete these video lessons to gain a firmer grounding of the topics below: UNIT 1: Motion & Looks Palettes UNIT 3: Control Palette Move, turn and point Beginning and waiting Go and glide, changing positions Repeating actions Bouncing, locating the sprite Broadcasting Changing costumes Conditional actions Speaking, thinking and graphic effects Stopping Size, presence and layers In-Lab Activity
You will create an animation where the cat will throw a ball into a pond. While the action is taking place, you'll see the clouds moving in the background. The cat will send a play ball message and a throw ball message. When the ball receives the play ball message, it will be positioned in the cat's arm. When it receives the throw ball message, it will fly through the sky in an arc. The ball will land in the pond, causing it to send a splash message, change its coloring, and disappear. When the cat receives the splash message, it realizes disappointingly that the game is over. When the pond receives the splash message, it sounds the water rippling effect and switches to the splash costume. 1. To get started with today's lab, you will create your own scenes and sprites using the paint editor. 2. Make sure that you have the default cat sprite and its other built-in pose as a second costume. a. Make another version of the cat by making a copy of the costume with the arm back & then flipping the arm up as if getting ready to throw something. Name this wind up. Name the other costume feet up. Name the original cat costume feet flat. 3. Create a background with green grass, a blue sky, and one tree with green foliage. a. Import the come and play voices sound for the background. 4. Create a yellow ball sprite and name it ball. a. Make a costume for the ball that is orange. Name this costume wet & name the original ball costume dry. 5. Create a small pond sprite positioned in the lower right corner of the screen and name it pond. a. Make a costume for the pond where several water droplets appear above it on both sides. Name this costume splash and the original pond costume still. b. Import a water rippling sound for the pond sprite. 6. Create three cloud sprites that are white and appear in the sky. Name them cloud1, cloud2, and cloud3. STARTING SCRIPTS 2011, Alka Harriger Page 1 Lab 02: Multiple Sprites in Scratch CNIT 15500 bring headphones to lab Fall 2011 Prof. Harriger Due: Monday, 9/12/11, 10 pm 15 Points 7. Write a script for the clouds to move across the sky in a loop. See the script sample to the right. 8. Make a copy of the script for the other two clouds, but adjust the x value start position for each to match the x-position where you placed them in your original set up. 9. Create a script for the stage that starts when the green flag is clicked, waits one second, and then plays the come-and-play sound. 10. Create a script for the pond that starts when the green flag is clicked and switches to the still pond costume. 11. Create a script for the ball that starts when the green flag is clicked and switches to the dry ball costume and hides the ball. COMMUNICATION BETWEEN SPRITES 12. Create a script for the cat that starts when the green flag is clicked. a. It should begin at (-195,-77) with the feet flat costume. b. It will move across the stage three times, switching costumes between the feet up and the feet flat while moving forward 10 steps every 0.5 seconds. c. It will say it's time to play ball and then broadcast the PlayBall message to others. d. To show it throwing the ball, switch to the feet up costume, wait 0.5 seconds, switch to the wind up costume, then broadcast the ThrowBall message. 13. Create a script for the ball when it receives the PlayBall message. a. It should point to the right (direction is 90), go to the cat, then move back -20 and down -10. b. It should be in the front layer & appear (show). 14. Create a script for the ball when it receives the ThrowBall message. a. It should point up (direction is 0). b. In a loop that repeats 20 times, it should move 30 steps and turn 10 degrees. c. This brings the ball to the pond, so switch the ball's costume to wet. d. Send the splash message and wait. e. In a loop that repeats 5 times, change the ghost effect by 25 every .2 seconds. 15. Create a script for the pond when it receives the splash message. a. Play the water rippling sound. b. Switch to the splash pond costume. 16. Create a script for the cat when it receives the splash message. a. Say a disappointed message for 2 seconds.. 17. Save your Scratch project. Demonstrate your animation to your instructor before you leave today's lab. Lab Homework For lab 2, you will do two things: submit an acceptable picture of yourself AND create a Scratch animation that uses the features you just practiced for the in-lab. The picture should be in JPEG format and the file size should be less than 100KB. It should show your head and shoulders with a front-facing view. The file must be named LName_FName_PUID.jpg where LName is your last name, FName is your first name, and PUID is your assigned 10-digit Purdue IT in the format 99999-99999. The Scratch animation should retell a scene from a well-known fairy tale. The assigned tales use the last 5 digits of your assigned Purdue ID: 00000-09999: Little Red Riding Hood 10000-19999: Goldilocks and the Three Bears 20000-29999: Cinderella 30000-39999: Rapunzel 40000-49999: Sleeping Beauty 50000-59999: Rumpelstiltskin 60000-69999: Hansel and Gretel 70000-79999: Aladdin and the Magic Lamp 2011, Alka Harriger Page 2 Lab 02: Multiple Sprites in Scratch CNIT 15500 bring headphones to lab Fall 2011 Prof. Harriger Due: Monday, 9/12/11, 10 pm 15 Points 80000-89999: The Ugly Duckling 90000-99999: Jack and the Beanstalk Grading criteria Lab 02 Max Possible 2.0 5.0 1.0 1.0 1.5 1.5 1.5 1.5 15.0 Your Scor e Task Description Credit considered only if correct assigned tale is used Successfully completed in-lab Submitted acceptable photo in correct type and with correct filename Submission followed directions Animation uses a customized scene OR character (Drawn in Paint editor) At least one sprite broadcasts a message At least one script block executes when the broadcast message is received Animation employs movement of at least two sprites Animation integrates sound at appropriate times in the story excerpt Total Points 0 Submission due no later than Tuesday, 9/12/11, 10 pm. Zip all files for this lab into ONE file named LnameFnameLab02.zip (Lname=your last name; FName=your first name). Use the essignments link from the course home page to make sure you submit your lab to the correct course. 2011, Alka Harriger Page 3 ...
View Full Document
This note was uploaded on 02/21/2012 for the course CIT 155 taught by Professor Lutes during the Fall '10 term at Purdue University-West Lafayette.
- Fall '10