Return to Scratch

Scratch Lab 2

Name: Miles Wiesenthal

Period: 7

Assignment: Lab #2

Lab Overview

This lab focused on loops and repitition. In Scratch Lab #1, I combined two in one, and then made another. In this lab, I combined them all. I had it have a costume involving my name, and I animated it. I made this sprite go around in a circle, and draw. I also put three code snippets in, that made it talk when I moused over, and saw which one worked best.

My Solution

My solution for the first one was easy, just constantly doing next costume in a forever loop. My second one just had it move 1 pixel, then turn half a degrees to make a circle, and it repeated forever. Technically it's not a true circle, but that is impossible to create with the limitation of pixels. In the final problem, I found that the loop in the forever tag worked the greatest because it did not just activate once, and it did not just repeat 10 times then stop.

My Project Link

Questions

  1. Question #1,2,3-Loops
    • There are repeat, repeat until, and forever loops. repeat activates a set amount of times, repeat until activates until a given situation, and forever does it forever.
    • If you want an action to repeat, but not stop, use a forever loop.
    • The following structure does not make sense, because the first forever loop is redundant, as it will only activate once. This is because it repeats the daughter forever, but it cannot repeat until it has finished. And it cannot finish for the daughter also contains a forever loop.
  2. Question #4-Sprite Communication
    • Sprites have a couple ways of beginning an action. They can start on a button click, or if the flag is clicked, or another situation. But they can also tell eachother to start with the broadcast command.
  3. Question #5-Conditionals.
    • The code snippets are equivalent, because one has the else and the if switched around, but that mskes it do the same thing, because it activates the opposite of the other, with a not statement.