Scratch Lab 2

Payson

Period 7

Lab #2

Lab Overview

Create your own sprite that contains your name. You need to animate it using multiple costumes

My Solution

My solution involved me having my name be a sprite and change the costume I created which was just a different font.

My Project Link

Lab Overview

Try the following loop structures. Which will result in the sprite moving 100 steps? Think about WHY this is happening.

My Solution

My solution was simple math. If your sprite moves 1 step 10 times and repeats this 10 times then your sprite will move 100 steps so that is the obvious answer. The other choices moved incorrect distances.

My Project Link

Lab Overview

Create an animation containing two sprites. The first sprite should animate until a given event (i.e. touching the edge, touching a sprite, a key is pressed…). After the event occurs, the first sprite should broadcast a message that triggers the animation for the second sprite. For added difficulty have the sprites only show up during their animation, have the stage change and have some music play.

My Solution

When you pressed space, music played, one sprite danced in place and changed the background. When it finished it said "Your turn! and hide. The other sprite now was shown, danced, and the background changed.

My Project Link

(Press Space)

Questions

  1. What are the types of loops contained in Scratch? What are the differences?
    • Some repeat forever, some repeat a set amount of times.
  2. If you are given a situation where you want an action to repeat, but you don’t know how long it should repeat for, which loop is the best structure to use? Why?
    • The one that allows you to repeat only a set number can be used once you figure it out; to figure it out, use the repeat forever command until you have an idea of how long.
  3. Does the following loop structure work? Does it make sense? Why or why not?
    • No. It will never repeat the first command because it will be forever repeating the sub-command.
  4. How can sprites “know” when to begin an action? Is there more than one way?
    • Use a command from the event section preceding your commands. There are multiple.
  5. Are the following code snippets equivalent? Why or why not?
    • Yes they are! They are just backwards.

Click HERE to return to my Scratch Labs.