Welcome To My Scratch Lab 2

Problems 1,3, and 5 were solved!

The blocks that resulted in the sprite moving a 100 steps were #1,#2,and #4

The one that seemed to work best was the one with the "forever" blocks.

What are the types of loops contained in Scratch? What are the differences?

- There are some that will repeat forever and there are some that will repeat for a certain number of times.

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?

- The best loop structure to use when you are not sure how long it should repeat is the "forever" block because it would let you determine how long it should repeat and how long is approperiate.

Does the following loop structure work? Does it make sense? Why or why not?

-The following structure works but does not make that much sense and is not very efficient. You would not need to have 2 forever loops, instead, just have 1 forever block and everything else would be inside of that.

How can sprites “know” when to begin an action? Is there more than one way?

- A sprite would know when to begin moving when a block that is labeled "When flag is pressed" is inserted into the script. There are many other ways of moving a sprite such as by pressing the space bar or clicking the screen.

Are the following code snippets equivalent? Why or why not?

-They are the same because the "if" block would include an "if not" on the other one and therefore they are both going to do the same movements when centain keys are pressed.

Click HERE to return to homepage.