My Scratch Stuff
Pair Programming
CLick
HERE to view the first scratch lab praciticing loops.
Scratch Lab #2, Problem #1
Click
HERE to watch my name animation
Scratch Lab #2, Problem #2
Click
HERE for another scratch lab
Scratch Lab #2, Problem #3
CLick
HERE to watch another Scratch Lab
Scratch Lab #2 Questions
Question #1: A forever loop continues what is contained in the bracket forever without stopping. A repeat loop makes the commands in the loop brackters repeat a certain number of times as instructed.
Question #2: If you are supposed to repeat something but it is not clear for how long, a forever loop is best in case there is no intention of stopping because a termination is not indicated.
Question #3: The forever loop does not work because you cannot tell the sprite to perform an action and do it forever twice because you will never get out of the second forever loop.
Question #4: Sprites are commanded through code to begin an action. There are multiple ways to instruct a sprite to begin an action. For example, the action could begin when the green flag is clicked, or an action could be instructed to trigger when another sprite does something.
Question #5: Yes, the code is the same. In the first one, if the space bar is pressed then it will say "spacebar has been pressed", if the not then the sprite will change costumes. In the second one, if the space bar isn't pressed then the sprite will change costume, if it is pressed then the sprite will say "Spacebar has been pressed" just as the first code.
Click
HERE to return to homepage.