Scratch Lab 2 Write Up

Name: Olivia Moore

Period: 7

Assignment: Scratch Lab #2

Lab Overview

This lab was based on loops and repitition. We were to animate our name and test given codes to see which worked the best. This involved copying the code from the lab description and applying each set of code to a sprite and decide which one works well. For the name animation, the sprite you draw has to have multiple costume that change to make the sprite move in a certain way. The full lab description is found HERE.

My Solution

My solution is to make my name look like it is melting. Using seven different costumes, they transferred onto the next to animate my name. For the codes, I used different sprites to perform each different set of code. For the fifth problem, the piece of code that worked the best was the code that had "forvever" around the code.

My Project Link

Questions

1. The types of loops in Scratch are forever, repeat, and repeat until. "Forever" has no restriction on it, "repeat" will do something only for a certain number of times that you write in the code, and "repeat until" will do something only until it reaches the condition declared in code.

2. If you do not know how long to repeat something, you should start with "repeat until" because you can add another control to make it automatically stop when it reaches a certain condition that you set.

3. Yes the code works, but you probably would not need to have the extra "say..." and "forever" tag around the rest of the code since it already makes sense without it.

4. Sprites can "know" when to begin an action by having the "wait until" or "wait for..." tag and then have it do something. Also, there is the "broadcast" tag which tells the sprite to do a large action that goes after the rest of the code you want it to do before that action. The code is read by the sprite from top to bottom anyway so it is going to do something in the correct order most of the time without a lot of extra controls.

5. Yes it is the same thing because the second one is a double negative, so it does the first piece of code in the first place. It is just another way of writing the code.