Scratch Lab #2

Name: Yohannes Dagne

Period: 7

Assignment: Lab #2

Lab Overview

Create your own sprite that contains your name. You need to animate it using multiple costumes. Now that you have the ability repeat commands with loops, rewrite your solution for polygon creation. At a minimum, your sprite should be able to create a regular hexagon. For a challenge, try to create a circle!Try the following loop structures. Which will result in the sprite moving 100 steps? Think about WHY this is happening.

My Solution

I completed the required tasks that each problem asked me to do.

Prob. 1

Problem 1

Prob. 2

Problem 2

Prob. 3

Problem 3

Questions

  1. What are the types of loops contained in Scratch?
    • There are forever loops and repeat loops.
  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?
    • You can use a forever loop and have the sprite do it's action forever.
  3. Does the following loop structure work? Does it make sense? Why or why not?
    • The loop structure works. IOt has the sprite say something forever in 0.2 second intervals.
  4. How can sprites “know” when to begin an action? Is there more than one way?
    • You give it a start with the when "green flag" clicked button is clicked.
  5. Are the following code snippets equivalent? Why or why not?
    • TThey essentially are different in code but do the same action.