Loops
Loops
condition.
● When the specified action should be repeated more than 4 times (ex: 370 times),
copying and pasting the same action would be tedious. To achieve this, the Repeat
block can be used to specify how many times a block of code will be repeated.
● Forever blocks can be used to run a code indefinitely (or until computer resources are
emptied)
● These concepts can be used for
○ Dancing sprites
○ Jumping sprite
○ Jumping again and again
○ Walking sprite
○ Ghost sprite
○ Bigger sprite, then smaller
○ Change backdrop brightness