Scratch Lab #2
Name: Robby Rowell
Period: 7
Assignment: Scratch Lab #1
Lab Overview
This lab required that we use loops and costume changes to make our sprites move. My projects are
HERE,
HERE, and
HERE.
My Solution
My solution to the first problem was to create a random shape with my name on it, and have it glide around the screen in a loop, rotating at one point and changing colors at another. For the second problem, I made the sprite continuosly draw a regular hexagon. I figured out the points I would need for a regular hexagon using some geometry, then made used the pen up and pen down command to draw the shape. I then used a loop command to make the sprite repeatedly draw the shape. For the third problem I created the loop structures shown in the problem and had them each start on a different command.
My Project Link
Questions
- What are the types of loops contained in Scratch? What are the differences?
There are loops that repeat a certain amount of times and there are loops that can repeat forever.
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?
-
There is a certain loop that allows you to stop when a certain action that appears on the screen.
Does the following loop structure work? Does it make sense? Why or why not?
It will say forever and ever forever and never get back to the first loop.
How can sprites “know” when to begin an action? Is there more than one way?
You can go to the control section and change it to different actions such as when space bar is pressed.
How can sprites “know” when to begin an action? Is there more than one way?
No. The first one requires the spacebar to be pressed and the second requires anything but the space bar pressed.