Monday, February 25, 2013

Programming Skills with Scratch

Scratch Lesson Plan

These are the steps you need to take to complete a "course" in programming. This is an overview. Each step has a specific guide to help with the details.

STEP 1. Choose a Project

  • Are you going to make a game or a calculator or an animation?
  • Who is it for? Do you want other kids to see it, or is it for your class or your grandma?
  • Think small! You have less than 10 hours total in the computer lab, and some of that time will be taken up learning the Scratch software.
  • Use the pre-planning handout to help guide your thinking.

STEP 2. Learn How to Use Scratch

  • Before you can make any project, you have to know what you're doing. You wouldn't make a pizza without knowing what the ingredients are and how to put them on the pizza, would you?
  • Take your time. Even if you don't complete a project in this session, but you learn how to use the software, you can try to make it over the summer on your own time.
  • Now visit the Scratch Tutorial page.

STEP 3. Plan Your Project

  • If you're making a pizza, this is where you do your shopping. Maybe you thought you were making a pepperoni pizza in step 1, but now that you know how to make it, you want an all-veggie pizza. 
  • Plan your ingredient list - art, characters, story... and your functional needs - keeping score, timers, what happens when the frog lands in the water, etc.
  • Use the project planning handout to help guide your thinking.
STEP 4. Build your project
  • It's time to start putting your project into action!
  • Open Scratch and build your creation - it's entirely up to you.
  • Test your project often, and write down the things that didn't work.
  • Use the debugging log to help you keep track of bugs and how you fixed them.
STEP 5. Finished? Share it!
  • My students can share their creations in my account. (Unless parents want to allow them to have their own account. It's relatively safe/private, but you never know.)
  • Just ask me how when you're finished!
---------------------------------

Some Project Ideas

Sunday, February 24, 2013

STEP 2: Learn to Use Scratch

STEP 2: Learn How to Use Scratch

This is where you get the task cards to help you learn how to use the Scratch program.

Once you learn how to use the basic features in Scratch, you will be able to transform your game or programming idea into an actual program!

Take your time so that you really understand what is happening when you do each task. If you try to just breeze through it, you might not remember a concept later when you are trying to solve a problem.

Go through each task card at your own pace. You might get through one in an hour, or you might get through several. Do them in order.

Mrs. Moon's Lesson 1

OPTION 1: REDWARE TUTORIALS (Good for Home Use)

(Note: These tutorials are property of Redware.com. The videos are hosted on YouTube and may not be accessible at school.)

0. Introduction to Scratch - Read me first!
  1. Draw a Sprite and Background
  2. Turtle Graphics
  3. Moving and Sensing
  4. Sounds and Graphics
  5. Variables
  6. Broadcast and Receive
  7. Make a Game
  8. Build a multimedia presentation

OPTION 2: TASK CARDS (Just open Scratch and follow along.)

(Note: These task cards were created by Lisa Bergin, Katie Brown, and Nelson Chan for 5th graders of Eastland Middle School in Shannon, IL.)

0. Getting Started - Read me first! <-- Print & Keep as a Handbook
  1. Task Card 1 - Movement, Looping (repeat/forever), and Bouncing on Edge
  2. Task Card 2 - Change effects (colour, etc), Press key and Wait __ sec. 
  3. Task Card 3 - Importing New Sprites and Speaking/Thinking 
  4. Task Card 4 - Create Your Own Animation Using Costumes
  5. Task Card 5 - X&Y Coordinates and Pen Down Effect 
  6. Task Card 6 - Sensing Feature / Hide & Show
  7. Task Card 7 - Broadcasting and Receiving
  8. Task Card 8 - Variables and Keeping Score
  9. Task Card 9 - Putting it all together!
  10. Task Card 10 - Editing Sprites

Sunday, August 5, 2012

Lesson 1 - Sprite control, Command, Motion, Pen Blocks




Objectives:
• Learners will become familiar with the layout of the Scratch project screen.
• Learners can describe a SPRITE as a 2-dimensional object that can be manipulated.
• Learners will understand how to piece together code blocks to build basic programs.
• Learners will use command and motion blocks to move a sprite on the screen.
• Learners will use command and pen blocks to draw shapes on the screen.

GETTING READY
1. Open Scratch.
2. Review the areas of the project screen.
3. Click on the Stage icon.
4. Click the Backgrounds tab.
5. Click the Import button.
6. Select the xy-grid.
7. Click the OK button.

MOVING THE SPRITE
8. Click the Sprite 1 icon in the sprite area.
9. Click and hold the Scratchy (cat) sprite in the stage; drag him around.
10. Click the Motion button in the Palette.
11. Click and drag the  “go to x: _ y: _” button onto the script area.
12. Click the white boxes and fill them in with 0 and 125.
13. Double-click the box and Scratchy will jump to that point on the xy-grid.

14. Click the Control button in the Palette.
15. Click and drag the “wait _ secs” block onto the script area.
16. Click the white box and change it to 0.1.
17. Click and drag the “wait” block until it connects beneath the “go to” block.

18. In the Sprite Toolbar, click the duplicate button.
19. Click the stamp tool onto the two blocks to make a copy, and then click the script area below to paste the copy.
20. Repeat this until you have 5 copies total. This is a little tricky, so take your time.
21. Change the XY coordinates in the boxes to the coordinates listed in the box to the right.
22. From the Control scripts, click and drag the “forever” block onto your script block. Notice how it wraps around the entire set of blocks.
23. Click and drag the “when clicked” block above the “forever” block.
24. In the stage area, click the green flag. Click the red dot to stop.

What shape is Scratchy making? What shape has 5 corners?

MOTION CONTROL
Scratchy moves a little too fast. Let’s slow him down with the “glide” command.

25. Click the Motion button in the Palette.
26. Drag the “glide __ to x:_ y:_” block below the last “wait” block.
27. Repeat 4 more times so that there are 5 “glide” blocks together.
28. Insert the xy-coordinates into the “glide” blocks using the box to the right.
29. Click the green flag to see what shape Scratchy is making now.

DRAWING THE SHAPE
30. Click the Pen button in the Palette.
31. Drag the “clear” block above the “forever” block.
32. Drag the “set pen color to _” block below the “clear” block.
33. Drag the “set pen size to _” block below that.
34. Drag the “pen down” block below that.
35. Click the green flag to see what happens.

TIME TO DEBUG!
You want Scratchy to always start at the same place before
the drawing begins. How might you do this?

36. Click the Motion button in the Palette.
37. Drag the “go to x:_ y:_” block above the “clear” block.
38. Set the coordinates to your starting point: 0, 125.
39. Click the green flag to see what happens. Did it fix the bug?

CHANGING THE PEN COLOR
40. Drag a new “when clicked” control block below your script.
41. Drag a new “forever” control block under it.
42. Drag the “Change pen color by _” pen block into the “forever” block.
43. Click the green flag to see what happens.

44. SAVE YOUR PROGRAM!

  Save it to your Computer Club folder.

Challenge Yourself!

• Clear this program. Try to create a new motion path for Scratchy that has a different shape, like a rectangle or a square.
• Do you think you can apply sounds to each time scratchy arrives at the starting point, or at a corner on your shape?


The Scratch Project Screen



 

Saturday, April 7, 2012

Scratchy Projects

Try these projects in scratch.

REMEMBER - Always start your code with a Control block!


CHANGE COLORS

  1. Choose a colorful sprite (character) from the COSTUMES tab. (IMPORT)
  2. Figure out how to use these two blocks to make your sprite change colors when you move your mouse!

       

COLOR EFFECT
  1. Choose a sprite (character) from the COSTUMES tab. (IMPORT)
  2. Figure out how to use these blocks to make the sprite's skin stretch when you move the mouse!

How about this?


CONVERSATION
  1. Choose two sprite characters from the COSTUMES tab. (IMPORT)
  2. Figure out how to use the "say" block and these blocks to have the characters talk back and forth!


DANCE DANCE BABY

  1. Choose 2-3 costumes for ONE character from the COSTUMES tab. (IMPORT)
  2. Figure out how to use these blocks to make the costume change quickly, so that it looks like the character is moving on the screen (dancing)!