Scratch Lab #2

Name: Matthew Moorehead

Period: 7

Assignment: Lab #2

Lab Overview

For this problem we were supposed to design a sprite and design costumes for that sprite. Then, we were supposed to make it move around with the different costumes. We were supposed to change the costume three times.

My Solution

To solve this, I first designed a new sprite with the tools like the rectangle and circle tool. I used the line tooks to design the emotions of the sprites. I changed the costume and used loops to make it move and look like it was dancing. .

My Project Link

Lab Overview

This problem asked that we rotate the sprite into a polygon at least with six sides. We were supposed to use the pen tool to draw it. Also, we were supposed to make it loop and continue to draw it.

My Solution

To solve this problem, I designed a hexagon by using specific coordinates. Then I used the pen tool and drew the hexagon with it. Lastly, I made it loop to keep it drawing the hexagon.

My Project Link

Lab Overview

For this lab, we were tested to see if we knew if each of the sprites would walk 100 steps. We had to copy down the coding that was seen in the example. I had to use 5 different examples.

My Solution

To do this, I used each of the codes and tested to see if they'd reach 100 steps. After this, I did multiplication to see if it added to 100 steps. The first, second, and fourth added to 100.

My Project Link

Questions

  1. What are the types of loops contained in Scratch? What are the differences?
    • The types of loops in scratch are repeat a numer of times, forever loop, and repeat until a certain amount of time.
  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?
    • In this scenario, the best loop os repeat until loop. This will stop the loop at the point that you want it to end.
  3. Does the following loop structure work? Does it make sense? Why or why not?
    • Yes, the loop should work. Even though it is both forever loops, it keeps going back to the forever loop.
  4. How can sprites “know” when to begin an action? Is there more than one way?
    • The sprites know when to begin an action when the user places the command "when something is clicked/pressed" then the sprites know when to begin an action. There are many ways to begin an action including all of the letter keys.
  5. Are the following code snippets equivalent? Why or why not?
    • Yes, they are the same because they are the same just out of order. It commands it to the same thing, just a different order.